-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
…1345) * feat: support InstrumentationScope, and update OTLP proto to 0.18.0 This commit accomplishes two things simultaneously - adding support for InstrumentationScope everywhere, and also updating the OTLP proto to v0.18.0. The PR that introduced InstrumentationScope is [here](open-telemetry/opentelemetry-specification#2276) My best understanding (which is implemented in this PR) is that: - Our OTLP export requests should group by InstrumentationScope instead of InstrumentationLibrary - We must be able to support accessing the InstrumentationLibrary from anywhere a ReadableSpan is available, and that it should represent the `name` and `version` fields from the InstrumentationScope. - When creating a tracer, we create and store an InstrumentationScope rather than an InstrumentationLibrary. - Non-OTLP exporters must export both `otlp.scope.{name,version}` AND `otlp.library.{name,version}` tags for backwards compatibility. Some notes that may be interesting: - I chose to keep the original definition of `InstrumentationLibrary` around for now. - I chose to have `Span#instrumentation_library` and `SpanData#instrumentation_library` create and memoize an `InstrumentationLibrary` on-demand when someone asks for it (and marked the method as deprecated in the YARD docs). - I chose *not* to reference that deprecated helper when modifying the zipkin and jaeger exporters, for performance reasons. * Update sdk/test/opentelemetry/sdk/trace/span_test.rb Co-authored-by: Francis Bogsanyi <francis.bogsanyi@shopify.com> * Update sdk/lib/opentelemetry/sdk/trace/span_data.rb Co-authored-by: Francis Bogsanyi <francis.bogsanyi@shopify.com> * Update sdk/lib/opentelemetry/sdk/trace/span.rb Co-authored-by: Francis Bogsanyi <francis.bogsanyi@shopify.com> * fixup: use alias_method * fixup: add deprecation notice to InstrumentationLibrary * fixup: argh, use alias in class scope * Update sdk/lib/opentelemetry/sdk/trace/span.rb Co-authored-by: Francis Bogsanyi <francis.bogsanyi@shopify.com> * Update sdk/lib/opentelemetry/sdk/trace/span.rb Co-authored-by: Francis Bogsanyi <francis.bogsanyi@shopify.com> * Update sdk/lib/opentelemetry/sdk/trace/span_data.rb Co-authored-by: Francis Bogsanyi <francis.bogsanyi@shopify.com> * fixup: update Rakefile to regenerate protos correctly It now checks out a specific tag, for starters. * bundle exec rake update_protobuf Co-authored-by: Francis Bogsanyi <francis.bogsanyi@shopify.com>
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.