-
Notifications
You must be signed in to change notification settings - Fork 144
Update span parser #797
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
Update span parser #797
Conversation
| const isHttp: boolean = (!!span.attributes[Constants.SpanAttribute.HttpStatusCode]) || (!!span.attributes[Constants.SpanAttribute.HttpUrl]); | ||
| const isGrpc: boolean = (!!span.attributes[Constants.SpanAttribute.GrpcStatusCode]); |
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.
| const name = `${method} ${pathname}`; | ||
| const dependencyTypeName = Constants.DependencyTypeName.Http; | ||
| const target = port ? `${host}:${port}`.toString() : host.toString(); | ||
| const target = span.attributes[Constants.SpanAttribute.HttpUrl].toString() || undefined; |
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.
| GrpcStatusCode: conventions.SemanticAttributes.RPC_GRPC_STATUS_CODE, | ||
| GrpcMethod: conventions.SemanticAttributes.RPC_METHOD, // rpc not grpc | ||
| GrpcService: conventions.SemanticAttributes.RPC_SERVICE, // rpc not grpc |
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.
All GRPC related constants reference
| HttpMethod: conventions.SemanticAttributes.HTTP_METHOD, | ||
| HttpStatusCode: conventions.SemanticAttributes.HTTP_STATUS_CODE, | ||
| HttpUrl: conventions.SemanticAttributes.HTTP_URL, | ||
| HttpUserAgent: conventions.SemanticAttributes.HTTP_USER_AGENT, |
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.
All HTTP related constants reference
hectorhdzg
left a comment
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.
LGTM
No description provided.