Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove superfluous otelmongodb attribute names. Conform to specification. #769

Merged
merged 8 commits into from
Aug 11, 2021

Conversation

evantorrie
Copy link
Contributor

fix #460

  • All custom attribute names previously used by otelmongodb instrumentation are removed and replaced with references to semconv conventions from the main opentelemetry-go repository.
  • Set span name as per OpenTelemetry specification: <collection>.<operation>, or just <operation> if no collection is involved.

@evantorrie evantorrie changed the title Remove superfluous otelmongodb attribute names. Conform to specification and add more tests Remove superfluous otelmongodb attribute names. Conform to specification. May 3, 2021
If the operation is a meta-level operation not involving a MongoDB
collection, the spanName will default to the just the name of the
operation.

This conforms the otelmongodb instrumentation to the example provided
in the OpenTelemetry specification.
Other language implementations do seem to include this.

TODO: Better sanitization of the statement and and max. size
limitation such as performed in the Java implementation
@evantorrie
Copy link
Contributor Author

@MrAlias This now looks ready to re-review again. No changes really from last time other than being rebased and having the integration tests fixed so that it's tested during the PR run.

@MrAlias MrAlias merged commit 420eff3 into open-telemetry:main Aug 11, 2021
plantfansam referenced this pull request in plantfansam/opentelemetry-go-contrib Mar 18, 2022
Integrate HTTP semantics helpers from contrib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

otelmongo: Various attributes improvements
3 participants