diff --git a/api/src/main/java/io/opentelemetry/trace/attributes/SemanticAttributes.java b/api/src/main/java/io/opentelemetry/trace/attributes/SemanticAttributes.java index 7eaa23cea3..f46e4042fd 100644 --- a/api/src/main/java/io/opentelemetry/trace/attributes/SemanticAttributes.java +++ b/api/src/main/java/io/opentelemetry/trace/attributes/SemanticAttributes.java @@ -78,8 +78,6 @@ public final class SemanticAttributes { public static final AttributeKey HTTP_SCHEME = stringKey("http.scheme"); /** HTTP response status code. E.g. 200 (integer) If and only if one was received/sent. */ public static final AttributeKey HTTP_STATUS_CODE = longKey("http.status_code"); - /** HTTP reason phrase. E.g. "OK" */ - public static final AttributeKey HTTP_STATUS_TEXT = stringKey("http.status_text"); /** Kind of HTTP protocol used: "1.0", "1.1", "2", "SPDY" or "QUIC". */ public static final AttributeKey HTTP_FLAVOR = stringKey("http.flavor"); /** Value of the HTTP "User-Agent" header sent by the client. */ diff --git a/exporters/zipkin/src/test/java/io/opentelemetry/exporters/zipkin/ZipkinSpanExporterTest.java b/exporters/zipkin/src/test/java/io/opentelemetry/exporters/zipkin/ZipkinSpanExporterTest.java index bea0bd6c0a..864b59a48a 100644 --- a/exporters/zipkin/src/test/java/io/opentelemetry/exporters/zipkin/ZipkinSpanExporterTest.java +++ b/exporters/zipkin/src/test/java/io/opentelemetry/exporters/zipkin/ZipkinSpanExporterTest.java @@ -192,12 +192,7 @@ class ZipkinSpanExporterTest { void generateSpan_AlreadyHasHttpStatusInfo() { Attributes attributeMap = Attributes.of( - SemanticAttributes.HTTP_STATUS_CODE, - 404L, - SemanticAttributes.HTTP_STATUS_TEXT, - "NOT FOUND", - stringKey("error"), - "A user provided error"); + SemanticAttributes.HTTP_STATUS_CODE, 404L, stringKey("error"), "A user provided error"); SpanData data = buildStandardSpan() .setAttributes(attributeMap) @@ -211,7 +206,6 @@ class ZipkinSpanExporterTest { .toBuilder() .clearTags() .putTag(SemanticAttributes.HTTP_STATUS_CODE.getKey(), "404") - .putTag(SemanticAttributes.HTTP_STATUS_TEXT.getKey(), "NOT FOUND") .putTag("error", "A user provided error") .build()); }