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

fix/use UNSUPPORT to represent undefined procotol in labelConverter #212

Conversation

NeJan2020
Copy link
Collaborator

  1. fix the exception when sending Kafka or gRPC trace data as Span through otlp-grpc.
  2. fix the exception when sending trace as Span with prometheus.

NeJan2020 added 3 commits May 7, 2022 11:29
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
@NeJan2020 NeJan2020 requested a review from dxsup May 7, 2022 04:59
Signed-off-by: niejiangang <niejiangang@harmonycloud.cn>
Comment on lines +323 to +328
attrs, ok := m.labelsMap[*tmpExtraKey]
if !ok {
tmpExtraKey.protocol = UNSUPPORTED
attrs = m.labelsMap[*tmpExtraKey]
}
return attrs
Copy link
Member

Choose a reason for hiding this comment

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

Better if we add a default result value when the attrs cannot be found even if using UNSUPPORTED. Since currently UNSUPPORTED always resides on the map, the modification could be made later.

Copy link
Member

@dxsup dxsup left a comment

Choose a reason for hiding this comment

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

LGTM

@dxsup dxsup merged commit 96f9adf into KindlingProject:main May 7, 2022
@NeJan2020 NeJan2020 deleted the fix/use_unsupport_to_represent_undefined_procotol branch May 18, 2022 04:49
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