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

O11Y-2256 : Resource can be passed into MeterProvider #90

Merged
merged 7 commits into from
Dec 3, 2022

Conversation

dustinlessard-wf
Copy link
Contributor

@dustinlessard-wf dustinlessard-wf commented Nov 5, 2022

Which problem is this PR solving?

It should be possible to associate a Resource with a MeterProvider so that all derivative instruments share the resource.

These changes allow a resource to be passed into the MeterProvider constructor and further build on the effort to bring metrics support to this library

How Has This Been Tested?

  • Please see unit-test

Checklist:

  • Unit tests have been added
  • Documentation has been updated

@Workiva/observability

@aviary-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

@dustinlessard-wf dustinlessard-wf marked this pull request as ready for review November 5, 2022 14:24
@semveraudit-wf
Copy link

semveraudit-wf commented Nov 5, 2022

Public API Changes

No changes to the public API found for commit 4aa18df

Showing results for 4aa18df

Powered by semver-audit-service. Please report any problems by filing an issue.
Reported by the dart semver audit client 2.2.2
Browse public API.

Last edited UTC Dec 01 at 13:05:11

@github-actions
Copy link

github-actions bot commented Dec 1, 2022

Total Coverage: 83.54%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
lib/src/api
   open_telemetry.dart100%100%74.07%16, 18, 20, 21, 22, 30, 32
lib/src/api/common
   attribute.dart100%100%100%
lib/src/api/context
   context.dart100%100%100%
lib/src/api/metrics/noop
   noop_meter_provider.dart100%100%100%
   noop_counter.dart100%100%100%
   noop_meter.dart100%100%100%
lib/src/api/trace
   nonrecording_span.dart100%100%25%24, 27, 30, 33, 36, 39, 42, 48, 54, 57, 58, 60, 63, 66, 70
   span_id.dart100%100%100%
   span_link.dart100%100%100%
   span_status.dart100%100%100%
   span.dart100%100%100%
   trace_id.dart100%100%100%
lib/src/sdk
   instrumentation_library.dart100%100%100%
lib/src/sdk/common
   attributes.dart100%100%100%
   instrumentation_scope.dart100%100%77.78%27, 28
lib/src/sdk/metrics
   meter_provider.dart100%100%78.57%34, 35, 36
   counter.dart100%100%0%8
   meter.dart100%100%100%
lib/src/sdk/metrics/state
   meter_shared_state.dart100%100%100%
   meter_provider_shared_state.dart100%100%100%
lib/src/sdk/resource
   resource.dart100%100%100%
lib/src/sdk/time_providers
   datetime_time_provider.dart100%100%100%
lib/src/sdk/trace
   span.dart100%100%93.18%108, 119, 168, 172, 33, 34
   tracer.dart100%100%100%
   id_generator.dart100%100%100%
   span_context.dart100%100%100%
   span_limits.dart100%100%41.18%24, 25, 26, 31, 32, 33, 38, 39, 40, 45, 46, 47, 52, 53, 54, 63, 64, 65, 74, 80
   trace_state.dart100%100%100%
   tracer_provider.dart100%100%100%
lib/src/sdk/trace/exporters
   collector_exporter.dart100%100%66.06%108, 111, 127, 130, 159, 160, 161, 162, 163, 165, 166, 167, 168, 169, 170, 172, 173, 174, 175, 176, 177, 179, 180, 181, 182, 183, 184, 186, 187, 188, 189, 190, 191, 193, 194, 198, 201
   console_exporter.dart100%100%94.74%41
lib/src/sdk/trace/propagation
   w3c_trace_context_propagator.dart100%100%89.29%49, 52, 60
lib/src/sdk/trace/sampling
   always_off_sampler.dart100%100%75%11
   always_on_sampler.dart100%100%75%11
   parent_based_sampler.dart100%100%88.89%29, 30
   sampling_result.dart100%100%100%
lib/src/sdk/trace/span_processors
   batch_processor.dart100%100%82.93%55, 69, 70, 85, 86, 87, 88
   simple_processor.dart100%100%90.91%29

@dustinlessard-wf
Copy link
Contributor Author

QA +1
@Workiva/release-management-p

Copy link

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from RM

@rmconsole4-wk rmconsole4-wk merged commit 2906bd6 into master Dec 3, 2022
@rmconsole4-wk rmconsole4-wk deleted the O11Y-2256 branch December 3, 2022 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants