Thanks to visit codestin.com
Credit goes to github.com

Skip to content

WSGI integration does nonstandard split between http.host and http.url #143

Closed
@Oberon00

Description

@Oberon00

See https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/data-semantic-conventions.md#http-server and https://github.com/open-telemetry/opentelemetry-python/blob/master/ext/opentelemetry-ext-wsgi/src/opentelemetry/ext/wsgi/__init__.py#L49-L56.

Even though the code seems right (apart from removing the query which should be included according to spec and adding a nonstandard http.host attribute), using a dumb flask example app (not the one from this repo, but that should work too), this resulted for me

k t v
http.url str /hello-opentelemetry
http.host str localhost:5000

Maybe there is a bogus value in one of the environment variables.

I will hopefully have time to investigate tomorrow, but if someone is quicker, fell free to take this issue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions