Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename ServiceInstanceIDDetector to ServiceInstanceIDDetectorSync
  • Loading branch information
maryliag committed Apr 11, 2024
commit 78c31e932b109415b516e24373f3e5f28f7173a8
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 experimental detector ServiceInstanceIDDetector that sets the value for `service.instance.id` as random UUID.
* feat(resources): new experimental detector ServiceInstanceIDDetectorSync that sets the value for `service.instance.id` as random UUID.

### :bug: (Bug Fix)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import {
processDetector,
hostDetector,
Resource,
serviceInstanceIDDetector,
serviceInstanceIDDetectorSync,
Copy link
Contributor

Choose a reason for hiding this comment

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

OCD nit: In other class names "id" has been capitalized as "Id" rather than "ID":

% rg -I 'export class' | rg ID

% rg -I 'export class' | rg Id
export class TraceIdRatioBasedSampler implements Sampler {
export class RandomIdGenerator implements IdGenerator {
export class RandomIdGenerator implements IdGenerator {
export class TraceIdRatioBasedSampler implements Sampler {
export class RandomIdGenerator implements IdGenerator {
export class RandomIdGenerator implements IdGenerator {

Though, given OSDetectorSync consistency is difficult.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OCD crisis adverted! 😄 Changed to Id

} from '@opentelemetry/resources';
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
import { logs } from '@opentelemetry/api-logs';
Expand Down Expand Up @@ -704,7 +704,7 @@ describe('Node SDK', () => {
processDetector,
envDetector,
hostDetector,
serviceInstanceIDDetector,
serviceInstanceIDDetectorSync,
],
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ import { noopDetectorSync } from '../../detectors/NoopDetectorSync';
/**
* @experimental
*/
export const serviceInstanceIDDetector = noopDetectorSync;
export const serviceInstanceIDDetectorSync = noopDetectorSync;
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ class ServiceInstanceIDDetectorSync implements DetectorSync {
/**
* @experimental
*/
export const serviceInstanceIDDetectorSync = new ServiceInstanceIDDetectorSync();
export const serviceInstanceIDDetectorSync =
new ServiceInstanceIDDetectorSync();