Skip to content

Commit 0721b2a

Browse files
committed
instrumentation/: Fix link to http server span semantic conventions
1 parent 1923343 commit 0721b2a

File tree

9 files changed

+14
-14
lines changed
  • instrumentation
    • opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi
    • opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django
    • opentelemetry-instrumentation-falcon/src/opentelemetry/instrumentation/falcon
    • opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi
    • opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask
    • opentelemetry-instrumentation-pyramid/src/opentelemetry/instrumentation/pyramid
    • opentelemetry-instrumentation-starlette/src/opentelemetry/instrumentation/starlette
    • opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado
    • opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi

9 files changed

+14
-14
lines changed

instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def client_response_hook(span: Span, scope: Scope, message: dict[str, Any]):
117117
Capture HTTP request and response headers
118118
*****************************************
119119
You can configure the agent to capture specified HTTP headers as span attributes, according to the
120-
`semantic convention <https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers>`_.
120+
`semantic conventions <https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-server-span>`_.
121121
122122
Request headers
123123
***************
@@ -422,8 +422,8 @@ def collect_custom_headers_attributes(
422422
"""
423423
Returns custom HTTP request or response headers to be added into SERVER span as span attributes.
424424
425-
Refer specifications:
426-
- https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers
425+
Refer to semantic conventions:
426+
- https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-server-span
427427
"""
428428
headers: DefaultDict[str, list[str]] = defaultdict(list)
429429
raw_headers = scope_or_response_message.get("headers")

instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def response_hook(span, request, response):
8383
Capture HTTP request and response headers
8484
*****************************************
8585
You can configure the agent to capture specified HTTP headers as span attributes, according to the
86-
`semantic convention <https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers>`_.
86+
`semantic conventions <https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-server-span>`_.
8787
8888
Request headers
8989
***************

instrumentation/opentelemetry-instrumentation-falcon/src/opentelemetry/instrumentation/falcon/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def response_hook(span, req, resp):
9393
Capture HTTP request and response headers
9494
*****************************************
9595
You can configure the agent to capture specified HTTP headers as span attributes, according to the
96-
`semantic convention <https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers>`_.
96+
`semantic convention <https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-server-span>`_.
9797
9898
Request headers
9999
***************

instrumentation/opentelemetry-instrumentation-fastapi/src/opentelemetry/instrumentation/fastapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def client_response_hook(span: Span, scope: dict[str, Any], message: dict[str, A
8585
Capture HTTP request and response headers
8686
*****************************************
8787
You can configure the agent to capture specified HTTP headers as span attributes, according to the
88-
`semantic convention <https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers>`_.
88+
`semantic conventions <https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-server-span>`_.
8989
9090
Request headers
9191
***************

instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def response_hook(span: Span, status: str, response_headers: List):
102102
Capture HTTP request and response headers
103103
*****************************************
104104
You can configure the agent to capture specified HTTP headers as span attributes, according to the
105-
`semantic convention <https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers>`_.
105+
`semantic conventions <https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-server-span>`_.
106106
107107
Request headers
108108
***************

instrumentation/opentelemetry-instrumentation-pyramid/src/opentelemetry/instrumentation/pyramid/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
Capture HTTP request and response headers
9393
*****************************************
9494
You can configure the agent to capture specified HTTP headers as span attributes, according to the
95-
`semantic convention <https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers>`_.
95+
`semantic conventions <https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-server-span>`_.
9696
9797
Request headers
9898
***************

instrumentation/opentelemetry-instrumentation-starlette/src/opentelemetry/instrumentation/starlette/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def client_response_hook(span: Span, scope: dict[str, Any], message: dict[str, A
8383
Capture HTTP request and response headers
8484
*****************************************
8585
You can configure the agent to capture specified HTTP headers as span attributes, according to the
86-
`semantic convention <https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers>`_.
86+
`semantic conventions <https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-server-span>`_.
8787
8888
Request headers
8989
***************

instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def client_response_hook(span, future):
101101
102102
Capture HTTP request and response headers
103103
*****************************************
104-
You can configure the agent to capture predefined HTTP headers as span attributes, according to the `semantic convention <https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers>`_.
104+
You can configure the agent to capture predefined HTTP headers as span attributes, according to the `semantic conventions <https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-server-span>`_.
105105
106106
Request headers
107107
***************

instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def response_hook(span: Span, environ: WSGIEnvironment, status: str, response_he
118118
Capture HTTP request and response headers
119119
*****************************************
120120
You can configure the agent to capture specified HTTP headers as span attributes, according to the
121-
`semantic convention <https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers>`_.
121+
`semantic conventions <https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-server-span>`_.
122122
123123
Request headers
124124
***************
@@ -403,7 +403,7 @@ def collect_request_attributes(
403403
def collect_custom_request_headers_attributes(environ: WSGIEnvironment):
404404
"""Returns custom HTTP request headers which are configured by the user
405405
from the PEP3333-conforming WSGI environ to be used as span creation attributes as described
406-
in the specification https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers
406+
in the semantic conventions https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-server-span
407407
"""
408408

409409
sanitize = SanitizeValue(
@@ -430,8 +430,8 @@ def collect_custom_response_headers_attributes(
430430
response_headers: list[tuple[str, str]],
431431
):
432432
"""Returns custom HTTP response headers which are configured by the user from the
433-
PEP3333-conforming WSGI environ as described in the specification
434-
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers
433+
PEP3333-conforming WSGI environ as described in the semantic conventions
434+
https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-server-span
435435
"""
436436

437437
sanitize = SanitizeValue(

0 commit comments

Comments
 (0)