Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Agent365Exporter } from './tracing/exporter/Agent365Exporter';
import type { TokenResolver } from './tracing/exporter/Agent365ExporterOptions';
import { Agent365ExporterOptions } from './tracing/exporter/Agent365ExporterOptions';
import { PerRequestSpanProcessor } from './tracing/PerRequestSpanProcessor';
import { resourceFromAttributes } from '@opentelemetry/resources';
import { resourceFromAttributes, envDetector, processDetector, serviceInstanceIdDetector } from '@opentelemetry/resources';
import { ATTR_SERVICE_NAME, ATTR_SERVICE_NAMESPACE } from '@opentelemetry/semantic-conventions';
import { trace } from '@opentelemetry/api';
import { ClusterCategory, IConfigurationProvider } from '@microsoft/agents-a365-runtime';
Expand Down Expand Up @@ -261,6 +261,7 @@ export class ObservabilityBuilder {
// Create & configure the NodeSDK manually so we can inject processors + resource.
this.sdk = new NodeSDK({
resource: this.createResource(),
resourceDetectors: [envDetector, processDetector, serviceInstanceIdDetector],
Comment thread
fpfp100 marked this conversation as resolved.
Outdated
spanProcessors: [
Comment thread
fpfp100 marked this conversation as resolved.
Comment thread
fpfp100 marked this conversation as resolved.
spanProcessor,
exportProcessor,
Expand Down
Loading