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

[chore] [processor/resourcedetection] Create ResourceBuilder on start #24437

Merged

Conversation

dmitryax
Copy link
Member

Create ResourceBuilder during the initialization state, not in the Detect call. We want to make sure that ResourceBuilder is initialized only once so we can introduce the same warnings as MetricsBuilder has. Detect is currently called only once as well, but it's better not to depend on such behavior, so it can be changed independently in the future if needed.

@github-actions github-actions bot added the processor/resourcedetection Resource detection processor label Jul 23, 2023
Create ResourceBuilder during the initialization state, not in the Detect call. We want to make sure that ResourceBuilder is initialized only once so we can introduce the same warnings as MetricsBuilder has. Detect is currently called only once as well, but it's better to not depend on such behavior, so it can be changed independently in future if needed.
@dmitryax dmitryax force-pushed the resource-detection-keep-builder branch from 4a75072 to 0604716 Compare July 23, 2023 21:08
@dmitryax dmitryax merged commit 7e3d665 into open-telemetry:main Jul 24, 2023
88 checks passed
@github-actions github-actions bot added this to the next release milestone Jul 24, 2023
@dmitryax dmitryax deleted the resource-detection-keep-builder branch July 24, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
processor/resourcedetection Resource detection processor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants