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

Update metric example to use resource detectors #724

Merged
merged 2 commits into from
Sep 21, 2023

Conversation

dashpole
Copy link
Contributor

This ensures users that run the example on GCP infrastructure get appropriate resource attributes. It also includes the resoruce.FromEnv option to ensure environment-variable-based resources are correctly detected.

@dashpole dashpole requested a review from a team as a code owner September 21, 2023 14:15
example/metric/sdk/example.go Outdated Show resolved Hide resolved
Co-authored-by: Aaron Abbott <aaronabbott@google.com>
@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Merging #724 (deaa079) into main (fe9ad49) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #724   +/-   ##
=======================================
  Coverage   69.48%   69.48%           
=======================================
  Files          42       42           
  Lines        4847     4847           
=======================================
  Hits         3368     3368           
  Misses       1328     1328           
  Partials      151      151           

see 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dashpole dashpole merged commit 412fafa into GoogleCloudPlatform:main Sep 21, 2023
25 checks passed
@dashpole dashpole deleted the fix_metric_example branch September 21, 2023 15:43
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.

2 participants