Skip to content

Conversation

@JacksonWeber
Copy link
Contributor

Update to use the OTel Azure resource detectors in the agent loader files.

import { Attributes } from "@opentelemetry/api";
import { SemanticResourceAttributes } from "@opentelemetry/semantic-conventions";
import { detectResourcesSync } from '@opentelemetry/resources';
import { azureFunctionsDetector } from '@opentelemetry/resource-detector-azure/build/src/detectors/AzureFunctionsDetector';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Excuse the strange import path here. Functions detector isn't exported from the index in the resource detector. Addressed here: open-telemetry/opentelemetry-js-contrib#1800

@hectorhdzg
Copy link
Member

Let's sync to discuss this, I though we were adding all the detectors in distro, there are pros/cons for each approach

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