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

refactor(resources)!: replace ResourceAttributes with Attributes #5016

Conversation

david-luna
Copy link
Contributor

@david-luna david-luna commented Sep 25, 2024

Which problem is this PR solving?

Replaces ResourceAttributes with Attributes

Refs #4175

Short description of the changes

Replace the interfaces in sources & tests. This PR targeting next since the version bump of @opentelemetry/api package and the changes in public types make it a breaking change.

Type of change

Please delete options that are not relevant.

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Ran unit tests for the changed package and its dependants

Checklist:

@david-luna david-luna requested a review from a team as a code owner September 25, 2024 13:50
@@ -32,12 +32,12 @@ import {
Span,
SpanExporter,
} from '../../../src';
import { context } from '@opentelemetry/api';
import { Attributes, context } from '@opentelemetry/api';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note for reviewer: leftover from #5009

@@ -36,7 +36,8 @@ import {
} from '../../../src';
import { TestStackContextManager } from './TestStackContextManager';
import { TestTracingSpanExporter } from './TestTracingSpanExporter';
import { Resource, ResourceAttributes } from '@opentelemetry/resources';
import { Attributes } from '@opentelemetry/api';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note for reviewer: leftover from #5009

Copy link

codecov bot commented Sep 25, 2024

Codecov Report

Attention: Patch coverage is 86.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 93.96%. Comparing base (32564ad) to head (15bb139).
Report is 3 commits behind head on next.

Files with missing lines Patch % Lines
...try-resources/src/detectors/BrowserDetectorSync.ts 0.00% 1 Missing ⚠️
...ors/platform/node/ServiceInstanceIdDetectorSync.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             next    #5016   +/-   ##
=======================================
  Coverage   93.96%   93.96%           
=======================================
  Files         310      310           
  Lines        8147     8147           
  Branches     1630     1630           
=======================================
  Hits         7655     7655           
  Misses        492      492           
Files with missing lines Coverage Δ
packages/opentelemetry-resources/src/Resource.ts 100.00% <100.00%> (ø)
...lemetry-resources/src/detectors/EnvDetectorSync.ts 94.11% <100.00%> (ø)
...es/src/detectors/platform/node/HostDetectorSync.ts 100.00% <100.00%> (ø)
...rces/src/detectors/platform/node/OSDetectorSync.ts 100.00% <100.00%> (ø)
...src/detectors/platform/node/ProcessDetectorSync.ts 92.85% <100.00%> (ø)
...try-resources/src/detectors/BrowserDetectorSync.ts 52.94% <0.00%> (ø)
...ors/platform/node/ServiceInstanceIdDetectorSync.ts 57.14% <0.00%> (ø)

@pichlermarc pichlermarc merged commit 91c67ba into open-telemetry:next Sep 26, 2024
20 checks passed
@david-luna david-luna deleted the dluna/4175-replace-attrib-interfaces-resources-package branch September 26, 2024 13:56
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