Skip to content

Commit

Permalink
remove Detector and use DetectorSync
Browse files Browse the repository at this point in the history
remove the Detector and use the DetectorSync instead. Also mark things as experimental.
  • Loading branch information
maryliag committed Apr 11, 2024
1 parent 0abedfc commit 8628f8a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 56 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/
### :rocket: (Enhancement)

* feat(sdk-trace-base): log resource attributes in ConsoleSpanExporter [#4605](https://github.com/open-telemetry/opentelemetry-js/pull/4605) @pichlermarc
* feat(resources): new detector ServiceInstanceIDDetector that sets the value for `service.instance.id` as random UUID.
* feat(resources): new experimental detector ServiceInstanceIDDetector that sets the value for `service.instance.id` as random UUID.

### :bug: (Bug Fix)

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@

import { noopDetectorSync } from '../../detectors/NoopDetectorSync';

export const serviceInstanceIDDetectorSync = noopDetectorSync;
/**
* @experimental
*/
export const serviceInstanceIDDetector = noopDetectorSync;
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export * from './HostDetectorSync';
export * from './OSDetectorSync';
export * from './ProcessDetector';
export * from './ProcessDetectorSync';
export * from './ServiceInstanceIDDetector';
export * from './ServiceInstanceIDDetectorSync';

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ class ServiceInstanceIDDetectorSync implements DetectorSync {
}
}

export const serviceInstanceIDDetectorSync =
new ServiceInstanceIDDetectorSync();
/**
* @experimental
*/
export const serviceInstanceIDDetector = new ServiceInstanceIDDetectorSync();
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export * from './HostDetectorSync';
export * from './OSDetectorSync';
export * from './ProcessDetector';
export * from './ProcessDetectorSync';
export * from './ServiceInstanceIDDetector';
export * from './ServiceInstanceIDDetectorSync';

0 comments on commit 8628f8a

Please sign in to comment.