Skip to content

Commit

Permalink
map status to http.response.status_code
Browse files Browse the repository at this point in the history
  • Loading branch information
making committed Jan 16, 2025
1 parent 8294367 commit 19178cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/am/ik/blog/config/BraveConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public OtlpProtoV1Encoder otlpProtoV1Encoder(OpenTelemetryProperties properties)
.tagToAttributes(TagToAttributes.newBuilder()
.withDefaults()
.tagToAttribute("method", "http.request.method")
.tagToAttribute("status", "http.response.status_code")
.tagToAttribute("uri", (builder, value) -> {
if ("none".equals(value)) {
return;
Expand Down

0 comments on commit 19178cf

Please sign in to comment.