Closed
Description
Component(s)
pkg/ottl
Is your feature request related to a problem? Please describe.
parsing URI possible only using complex RegEx
Describe the solution you'd like
Intended converter parses a Uniform Resource Identifier (URI) string and extracts its components into URL SemConv attributes.
Example
input:
"sample": "http://myusername:[email protected]:80/foo.gif?key1=val1&key2=val2#fragment"
Result:
{
"url": {
"path" : "/foo.gif",
"fragment" : "fragment",
"extension" : "gif",
"password" : "mypassword",
"original" : "http://myusername:[email protected]:80/foo.gif?key1=val1&key2=val2#fragment",
"scheme" : "http",
"port" : 80,
"user_info" : "myusername:mypassword",
"domain" : "www.example.com",
"query" : "key1=val1&key2=val2",
"username" : "myusername"
}
}
Describe alternatives you've considered
No response
Additional context
No response