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/signalfx] Retry property update without tags #36044

Merged

Conversation

dmitryax
Copy link
Member

Property and tag updates are done using the same API call. Sometimes, there might be too many tags associated with a dimension key/value pair, so the backend rejects the request. We want to retry the call without tags in that situation, given that properties are more valuable and should not be lost because of an excessive amount of tags coming with them.

There is no easy way to add a unit test for this change to the current unit tests framework due to its limitations. I'm working on changing it, which will come in a separate PR.

@github-actions github-actions bot requested a review from crobert-1 October 29, 2024 04:29
dmitryax added a commit that referenced this pull request Oct 30, 2024
Rework the tests to explicitly control requests handling by the mock
server. Use channels to control start and finish of request handling
instead of relying on timer and timeouts.

All the tests in the package are now executed in 1.5 seconds compared to
19 seconds as before the change.

This change also unblocks
#36044
which can be covered after this
Property and tags updates are done in the API same call. Sometimes there are might be too many tags associated with a dimension key/value pair so the backend rejects it. We want to retry the call without tags in that situation given that properties are more valuable and should not be lost because of excessive amount of tags coming with them.
@dmitryax dmitryax force-pushed the separate-tags-and-dimensio-updates branch from 41477b8 to 0c69f89 Compare October 30, 2024 20:08
@dmitryax dmitryax marked this pull request as ready for review October 30, 2024 20:24
@dmitryax dmitryax requested a review from a team as a code owner October 30, 2024 20:24
@dmitryax dmitryax merged commit 5b3d97d into open-telemetry:main Oct 31, 2024
160 checks passed
@github-actions github-actions bot added this to the next release milestone Oct 31, 2024
ArthurSens pushed a commit to ArthurSens/opentelemetry-collector-contrib that referenced this pull request Nov 4, 2024
…elemetry#36086)

Rework the tests to explicitly control requests handling by the mock
server. Use channels to control start and finish of request handling
instead of relying on timer and timeouts.

All the tests in the package are now executed in 1.5 seconds compared to
19 seconds as before the change.

This change also unblocks
open-telemetry#36044
which can be covered after this
ArthurSens pushed a commit to ArthurSens/opentelemetry-collector-contrib that referenced this pull request Nov 4, 2024
…y#36044)

Property and tag updates are done using the same API call. Sometimes,
there might be too many tags associated with a dimension key/value pair,
so the backend rejects the request. We want to retry the call without
tags in that situation, given that properties are more valuable and
should not be lost because of an excessive amount of tags coming with
them.

There is no easy way to add a unit test for this change to the current
unit tests framework due to its limitations. I'm working on changing it,
which will come in a separate PR.
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
…elemetry#36086)

Rework the tests to explicitly control requests handling by the mock
server. Use channels to control start and finish of request handling
instead of relying on timer and timeouts.

All the tests in the package are now executed in 1.5 seconds compared to
19 seconds as before the change.

This change also unblocks
open-telemetry#36044
which can be covered after this
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
…y#36044)

Property and tag updates are done using the same API call. Sometimes,
there might be too many tags associated with a dimension key/value pair,
so the backend rejects the request. We want to retry the call without
tags in that situation, given that properties are more valuable and
should not be lost because of an excessive amount of tags coming with
them.

There is no easy way to add a unit test for this change to the current
unit tests framework due to its limitations. I'm working on changing it,
which will come in a separate PR.
@dmitryax dmitryax deleted the separate-tags-and-dimensio-updates branch December 19, 2024 04:35
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.

3 participants