Skip to content

Commit

Permalink
Merge pull request #1654 from NipunaMadhushan/add-obs-protocol
Browse files Browse the repository at this point in the history
Change protocol tag to grpc
  • Loading branch information
daneshk authored Nov 26, 2024
2 parents c44f329 + fa677d2 commit b34eaae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public class ServerConnectorListener implements HttpConnectorListener {

private static final Logger log = LoggerFactory.getLogger(ServerConnectorListener.class);
private static final String SERVER_CONNECTOR_GRPC = "grpc";
private static final String GRPC_PROTOCOL = "grpc";

private final ServicesRegistry servicesRegistry;
private Map<String, Long> messageSizeMap;
Expand Down Expand Up @@ -151,7 +152,7 @@ private ObserverContext getObserverContext(String method, InboundMessage inbound
observerContext.addProperty(PROPERTY_TRACE_PROPERTIES, httpHeaders);
observerContext.addTag(TAG_KEY_HTTP_METHOD,
(String) inboundMessage.getProperty(HttpConstants.HTTP_REQUEST_METHOD.getValue()));
observerContext.addTag(TAG_KEY_PROTOCOL, (String) inboundMessage.getProperty(HttpConstants.PROTOCOL));
observerContext.addTag(TAG_KEY_PROTOCOL, GRPC_PROTOCOL);
observerContext.addTag(TAG_KEY_HTTP_URL, inboundMessage.getPath());
return observerContext;
}
Expand Down

0 comments on commit b34eaae

Please sign in to comment.