-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[signalfxexporter] Split incoming data requests by access token before enqueuing #1727
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
Conversation
dfd4f0f
to
2e06830
Compare
…e enqueuing Signed-off-by: Bogdan Drutu <[email protected]>
2e06830
to
5fef5d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need similar changes for sapmexporter?
Yes, they will be next |
Signed-off-by: Bogdan Drutu <[email protected]>
metricToken := s.retrieveAccessToken(rms.At(0)) | ||
|
||
var sfxDataPoints []*sfxpb.DataPoint | ||
|
||
for i := 0; i < rms.Len(); i++ { | ||
rm := rms.At(i) | ||
if rm.IsNil() { | ||
continue | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we had debug asserts (if Go had them?) it would be useful to assert that s.retrieveAccessToken(rm)==metricToken
. Maybe we need to add our own debug assert function (if it's even doable nicely in Go).
Nothing to do for now, but some food for thought.
Signed-off-by: Bogdan Drutu <[email protected]>
Signed-off-by: Bogdan Drutu <[email protected]>
Signed-off-by: Bogdan Drutu <[email protected]>
Signed-off-by: Bogdan Drutu <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1727 +/- ##
=======================================
Coverage 89.55% 89.56%
=======================================
Files 373 374 +1
Lines 18234 18296 +62
=======================================
+ Hits 16330 16386 +56
- Misses 1414 1415 +1
- Partials 490 495 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
* Update SamplingParameters Remove HasRemoteParent fields from SamplingParameters. The HasRemoteParent field is a duplicate of the Remote field of the parent span context contained in the ParentContext. Change the `ParentContext` field from storing a `SpanContext` to a `context.Context` that holds the parent span. This is to conform with the OpenTelemetry specification and resolve #1727. * Update PR number
Fixes a possible memory corruption caused by the fact that the previous logic was deleting an element from the resource attributes, and the data could be shared between different exporters (exporters are not allowed to manipulate data).
Updates #1495
Signed-off-by: Bogdan Drutu [email protected]