OpenStack keystonemiddleware module instrumentation for OpenTelemetry
Project description
OpenTelemetry keystonemiddleware instrumentation
Instruments the keystonemiddleware
auth_token WSGI middleware that OpenStack services mount in front of their
request pipeline.
It wraps keystonemiddleware.auth_token.BaseAuthProtocol.process_request -- the
single method through which the stock AuthProtocol and any subclass validate
the request's bearer token(s) -- so every authentication produces a span:
- the outcome: whether a user and/or service token was present and accepted;
- for accepted user tokens, the resolved identity (
user.id,user.name,user.roles) and OpenStack scope (openstack.project_id,openstack.project_name,openstack.domain_id).
Because auth_token is usually the first middleware to see an inbound request,
it also continues a distributed trace: when no span is already active the
instrumentor extracts the W3C trace context from the incoming headers and opens a
SERVER span, so a trace started by an instrumented client (for example the
OpenStack SDK) carries on into the service. When a span is already active the
authentication span is nested under it as INTERNAL.
Installation
pip install opentelemetry-instrumentation-keystonemiddleware
Usage
from opentelemetry.instrumentation.keystonemiddleware import (
KeystoneMiddlewareInstrumentor,
)
KeystoneMiddlewareInstrumentor().instrument()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opentelemetry_instrumentation_keystonemiddleware-0.9.0.tar.gz.
File metadata
- Download URL: opentelemetry_instrumentation_keystonemiddleware-0.9.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b04dc810a3677986b60491dd3805a527155a73cbf47837b3337d5f241eced4c
|
|
| MD5 |
dcfa0c13f4d803d9b1f407cbfeb3755c
|
|
| BLAKE2b-256 |
b06ab9cadb50e7b3e230caa589399b78b331c7bd5ff4b16ea81054f8b5601ed5
|
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_keystonemiddleware-0.9.0.tar.gz:
Publisher:
publish-pypi.yml on daipham3213/opentelemetry-openstack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentelemetry_instrumentation_keystonemiddleware-0.9.0.tar.gz -
Subject digest:
6b04dc810a3677986b60491dd3805a527155a73cbf47837b3337d5f241eced4c - Sigstore transparency entry: 2054784702
- Sigstore integration time:
-
Permalink:
daipham3213/opentelemetry-openstack@744e4979f4f250a7a0bf0999489342de8f24909e -
Branch / Tag:
refs/tags/0.9.0 - Owner: https://github.com/daipham3213
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@744e4979f4f250a7a0bf0999489342de8f24909e -
Trigger Event:
release
-
Statement type:
File details
Details for the file opentelemetry_instrumentation_keystonemiddleware-0.9.0-py3-none-any.whl.
File metadata
- Download URL: opentelemetry_instrumentation_keystonemiddleware-0.9.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
178f3beb6b277ac80e7cb9b788db97d6113fb772808b0b482dc1fbaf9feb1be6
|
|
| MD5 |
d56584e5193f10ad76d1d789cdf1ea9a
|
|
| BLAKE2b-256 |
9a4e3731d069421eb337e868034aa38de5fe6b55d6676f208c598353f0fa52c1
|
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_keystonemiddleware-0.9.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on daipham3213/opentelemetry-openstack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentelemetry_instrumentation_keystonemiddleware-0.9.0-py3-none-any.whl -
Subject digest:
178f3beb6b277ac80e7cb9b788db97d6113fb772808b0b482dc1fbaf9feb1be6 - Sigstore transparency entry: 2054785047
- Sigstore integration time:
-
Permalink:
daipham3213/opentelemetry-openstack@744e4979f4f250a7a0bf0999489342de8f24909e -
Branch / Tag:
refs/tags/0.9.0 - Owner: https://github.com/daipham3213
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@744e4979f4f250a7a0bf0999489342de8f24909e -
Trigger Event:
release
-
Statement type: