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

[exporter/azuremonitor] fix not exporting to azure monitor when using instrumentaion key #36794

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

hgaol
Copy link
Member

@hgaol hgaol commented Dec 12, 2024

Description

Fixed not exporting to azure monitor when using instrumentation key without endpoint. If default config is set, it'll never goto the branch

Link to tracking issue

Fixes #36704

Testing

tested locally and can send metrics/logs/traces to appinsights successfully. And passes all tests.

Documentation

no need to update.

@hgaol
Copy link
Member Author

hgaol commented Dec 13, 2024

Hi @pcwiese , could you help to take a look? thanks!

@MovieStoreGuy MovieStoreGuy merged commit 2a399c4 into open-telemetry:main Dec 15, 2024
161 checks passed
@github-actions github-actions bot added this to the next release milestone Dec 15, 2024
@hgaol hgaol deleted the 36704 branch December 16, 2024 01:25
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
… instrumentaion key (open-telemetry#36794)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Fixed not exporting to azure monitor when using instrumentation key
without endpoint. If default config is set, it'll never goto the branch

https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/ab0f6a24521104e2e06c11673bc462aa4a5703e4/exporter/azuremonitorexporter/connection_string_parser.go#L47

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes open-telemetry#36704 

<!--Describe what testing was performed and which tests were added.-->
#### Testing

tested locally and can send metrics/logs/traces to `appinsights`
successfully. And passes all tests.

<!--Describe the documentation added.-->
#### Documentation

no need to update.

<!--Please delete paragraphs that you did not use before submitting.-->
mterhar pushed a commit to mterhar/opentelemetry-collector-contrib that referenced this pull request Dec 19, 2024
… instrumentaion key (open-telemetry#36794)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Fixed not exporting to azure monitor when using instrumentation key
without endpoint. If default config is set, it'll never goto the branch

https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/ab0f6a24521104e2e06c11673bc462aa4a5703e4/exporter/azuremonitorexporter/connection_string_parser.go#L47

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes open-telemetry#36704 

<!--Describe what testing was performed and which tests were added.-->
#### Testing

tested locally and can send metrics/logs/traces to `appinsights`
successfully. And passes all tests.

<!--Describe the documentation added.-->
#### Documentation

no need to update.

<!--Please delete paragraphs that you did not use before submitting.-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Azure Monitor Exporter: Telemetry is not exported to Azure Monitor
3 participants