)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"2ad5553ba3994e4d4a7ba9b704d9b4e0a9f9c55e","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":1,"id":"3d3bd5ed_f0a5553f","line":20,"updated":"2026-11-23 10:15:13.000000000","message":"You probably want a bug report?","commit_id":"ab608ec8e293597faf9f5ff23e23e7a3d196d9ba"},{"author":{"_account_id":32968,"name":"Juan Larriba","email":"jlarriba@redhat.com","username":"jlarriba"},"change_message_id":"0e1aa831917a4342e490381d487f2e6ec94a646e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"8efc853c_616eb08f","line":20,"in_reply_to":"3d3bd5ed_f0a5553f","updated":"2026-11-24 09:33:13.000000000","message":"Done: https://bugs.launchpad.net/oslo.middleware/+bug/2175706","commit_id":"ab608ec8e293597faf9f5ff23e23e7a3d196d9ba"}],"oslo_middleware/tracing.py":[{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"2ad5553ba3994e4d4a7ba9b704d9b4e0a9f9c55e","unresolved":true,"context_lines":[{"line_number":382,"context_line":"        user_agent \u003d req.user_agent"},{"line_number":383,"context_line":"        if user_agent:"},{"line_number":384,"context_line":"            span.set_attribute(\u0027http.user_agent\u0027, user_agent)"},{"line_number":385,"context_line":""},{"line_number":386,"context_line":"        # OpenStack-specific attributes from oslo.context."},{"line_number":387,"context_line":"        # The request context is populated by the auth middleware which"},{"line_number":388,"context_line":"        # must run before this middleware in the pipeline."},{"line_number":389,"context_line":"        ctx_obj \u003d req.environ.get(\u0027oslo.context\u0027)"},{"line_number":390,"context_line":"        if ctx_obj is not None:"},{"line_number":391,"context_line":"            if getattr(ctx_obj, \u0027global_request_id\u0027, None):"}],"source_content_type":"text/x-python","patch_set":1,"id":"03e8194d_c0759d83","side":"PARENT","line":388,"range":{"start_line":385,"start_character":0,"end_line":388,"end_character":58},"updated":"2026-11-23 10:15:13.000000000","message":"The comment here said keystonemiddleware handled this. Is that not true so?","commit_id":"a3f6844dc10d265bdd9643ffed59c0ef437ce887"},{"author":{"_account_id":32968,"name":"Juan Larriba","email":"jlarriba@redhat.com","username":"jlarriba"},"change_message_id":"0e1aa831917a4342e490381d487f2e6ec94a646e","unresolved":false,"context_lines":[{"line_number":382,"context_line":"        user_agent \u003d req.user_agent"},{"line_number":383,"context_line":"        if user_agent:"},{"line_number":384,"context_line":"            span.set_attribute(\u0027http.user_agent\u0027, user_agent)"},{"line_number":385,"context_line":""},{"line_number":386,"context_line":"        # OpenStack-specific attributes from oslo.context."},{"line_number":387,"context_line":"        # The request context is populated by the auth middleware which"},{"line_number":388,"context_line":"        # must run before this middleware in the pipeline."},{"line_number":389,"context_line":"        ctx_obj \u003d req.environ.get(\u0027oslo.context\u0027)"},{"line_number":390,"context_line":"        if ctx_obj is not None:"},{"line_number":391,"context_line":"            if getattr(ctx_obj, \u0027global_request_id\u0027, None):"}],"source_content_type":"text/x-python","patch_set":1,"id":"b99ac4c0_0c502345","side":"PARENT","line":388,"range":{"start_line":385,"start_character":0,"end_line":388,"end_character":58},"in_reply_to":"03e8194d_c0759d83","updated":"2026-11-24 09:33:13.000000000","message":"It is not true: the comment was wrong :(","commit_id":"a3f6844dc10d265bdd9643ffed59c0ef437ce887"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"2ad5553ba3994e4d4a7ba9b704d9b4e0a9f9c55e","unresolved":true,"context_lines":[{"line_number":451,"context_line":")"},{"line_number":452,"context_line":""},{"line_number":453,"context_line":""},{"line_number":454,"context_line":"def _set_openstack_attributes(span: Any, environ: dict[str, Any]) -\u003e None:"},{"line_number":455,"context_line":"    \"\"\"Set the request and identity attributes found in the environ.\"\"\""},{"line_number":456,"context_line":"    attributes \u003d list(_REQUEST_ID_ATTRIBUTES)"},{"line_number":457,"context_line":"    # auth_token strips identity headers sent by the client, so only trust"}],"source_content_type":"text/x-python","patch_set":1,"id":"d2497bc2_5b77f515","line":454,"updated":"2026-11-23 10:15:13.000000000","message":"It\u0027ll require a cast, but we know the type of `span` here (`opentelemetry.trace.span.Span`) and `environ` (`_typeshed.wsgi.WSGIEnvironment`).","commit_id":"ab608ec8e293597faf9f5ff23e23e7a3d196d9ba"},{"author":{"_account_id":32968,"name":"Juan Larriba","email":"jlarriba@redhat.com","username":"jlarriba"},"change_message_id":"0e1aa831917a4342e490381d487f2e6ec94a646e","unresolved":false,"context_lines":[{"line_number":451,"context_line":")"},{"line_number":452,"context_line":""},{"line_number":453,"context_line":""},{"line_number":454,"context_line":"def _set_openstack_attributes(span: Any, environ: dict[str, Any]) -\u003e None:"},{"line_number":455,"context_line":"    \"\"\"Set the request and identity attributes found in the environ.\"\"\""},{"line_number":456,"context_line":"    attributes \u003d list(_REQUEST_ID_ATTRIBUTES)"},{"line_number":457,"context_line":"    # auth_token strips identity headers sent by the client, so only trust"}],"source_content_type":"text/x-python","patch_set":1,"id":"9e7a8311_b9a3a083","line":454,"in_reply_to":"d2497bc2_5b77f515","updated":"2026-11-24 09:33:13.000000000","message":"Done","commit_id":"ab608ec8e293597faf9f5ff23e23e7a3d196d9ba"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"2ad5553ba3994e4d4a7ba9b704d9b4e0a9f9c55e","unresolved":true,"context_lines":[{"line_number":438,"context_line":"        return response"},{"line_number":439,"context_line":""},{"line_number":440,"context_line":""},{"line_number":441,"context_line":"_REQUEST_ID_ATTRIBUTES \u003d ("},{"line_number":442,"context_line":"    (request_id.ENV_REQUEST_ID, \u0027openstack.request_id\u0027),"},{"line_number":443,"context_line":"    (request_id.GLOBAL_REQ_ID, \u0027openstack.global_request_id\u0027),"},{"line_number":444,"context_line":")"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"# Set by keystonemiddleware\u0027s auth_token once it has validated the token."},{"line_number":447,"context_line":"_IDENTITY_ATTRIBUTES \u003d ("},{"line_number":448,"context_line":"    (\u0027HTTP_X_PROJECT_ID\u0027, \u0027openstack.project_id\u0027),"},{"line_number":449,"context_line":"    (\u0027HTTP_X_USER_ID\u0027, \u0027openstack.user_id\u0027),"},{"line_number":450,"context_line":"    (\u0027HTTP_X_DOMAIN_ID\u0027, \u0027openstack.domain_id\u0027),"},{"line_number":451,"context_line":")"},{"line_number":452,"context_line":""},{"line_number":453,"context_line":""},{"line_number":454,"context_line":"def _set_openstack_attributes(span: Any, environ: dict[str, Any]) -\u003e None:"},{"line_number":455,"context_line":"    \"\"\"Set the request and identity attributes found in the environ.\"\"\""},{"line_number":456,"context_line":"    attributes \u003d list(_REQUEST_ID_ATTRIBUTES)"},{"line_number":457,"context_line":"    # auth_token strips identity headers sent by the client, so only trust"},{"line_number":458,"context_line":"    # them once it has confirmed the token."},{"line_number":459,"context_line":"    if environ.get(\u0027HTTP_X_IDENTITY_STATUS\u0027) \u003d\u003d \u0027Confirmed\u0027:"},{"line_number":460,"context_line":"        attributes +\u003d _IDENTITY_ATTRIBUTES"},{"line_number":461,"context_line":""},{"line_number":462,"context_line":"    for key, attribute in attributes:"},{"line_number":463,"context_line":"        value \u003d environ.get(key)"},{"line_number":464,"context_line":"        if value:"},{"line_number":465,"context_line":"            span.set_attribute(attribute, value)"}],"source_content_type":"text/x-python","patch_set":1,"id":"90c81d7e_2d78d3a1","line":465,"range":{"start_line":441,"start_character":0,"end_line":465,"end_character":48},"updated":"2026-11-23 10:15:13.000000000","message":"nit: can we move all of this above the user, `TracingMiddleware`?","commit_id":"ab608ec8e293597faf9f5ff23e23e7a3d196d9ba"},{"author":{"_account_id":32968,"name":"Juan Larriba","email":"jlarriba@redhat.com","username":"jlarriba"},"change_message_id":"0e1aa831917a4342e490381d487f2e6ec94a646e","unresolved":false,"context_lines":[{"line_number":438,"context_line":"        return response"},{"line_number":439,"context_line":""},{"line_number":440,"context_line":""},{"line_number":441,"context_line":"_REQUEST_ID_ATTRIBUTES \u003d ("},{"line_number":442,"context_line":"    (request_id.ENV_REQUEST_ID, \u0027openstack.request_id\u0027),"},{"line_number":443,"context_line":"    (request_id.GLOBAL_REQ_ID, \u0027openstack.global_request_id\u0027),"},{"line_number":444,"context_line":")"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"# Set by keystonemiddleware\u0027s auth_token once it has validated the token."},{"line_number":447,"context_line":"_IDENTITY_ATTRIBUTES \u003d ("},{"line_number":448,"context_line":"    (\u0027HTTP_X_PROJECT_ID\u0027, \u0027openstack.project_id\u0027),"},{"line_number":449,"context_line":"    (\u0027HTTP_X_USER_ID\u0027, \u0027openstack.user_id\u0027),"},{"line_number":450,"context_line":"    (\u0027HTTP_X_DOMAIN_ID\u0027, \u0027openstack.domain_id\u0027),"},{"line_number":451,"context_line":")"},{"line_number":452,"context_line":""},{"line_number":453,"context_line":""},{"line_number":454,"context_line":"def _set_openstack_attributes(span: Any, environ: dict[str, Any]) -\u003e None:"},{"line_number":455,"context_line":"    \"\"\"Set the request and identity attributes found in the environ.\"\"\""},{"line_number":456,"context_line":"    attributes \u003d list(_REQUEST_ID_ATTRIBUTES)"},{"line_number":457,"context_line":"    # auth_token strips identity headers sent by the client, so only trust"},{"line_number":458,"context_line":"    # them once it has confirmed the token."},{"line_number":459,"context_line":"    if environ.get(\u0027HTTP_X_IDENTITY_STATUS\u0027) \u003d\u003d \u0027Confirmed\u0027:"},{"line_number":460,"context_line":"        attributes +\u003d _IDENTITY_ATTRIBUTES"},{"line_number":461,"context_line":""},{"line_number":462,"context_line":"    for key, attribute in attributes:"},{"line_number":463,"context_line":"        value \u003d environ.get(key)"},{"line_number":464,"context_line":"        if value:"},{"line_number":465,"context_line":"            span.set_attribute(attribute, value)"}],"source_content_type":"text/x-python","patch_set":1,"id":"2e7ffd8c_a22a18d2","line":465,"range":{"start_line":441,"start_character":0,"end_line":465,"end_character":48},"in_reply_to":"90c81d7e_2d78d3a1","updated":"2026-11-24 09:33:13.000000000","message":"Done","commit_id":"ab608ec8e293597faf9f5ff23e23e7a3d196d9ba"}],"releasenotes/notes/tracing-openstack-attributes-94006b09de49bc82.yaml":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"081be22aaf72b66e48972492cd201893f5403eda","unresolved":true,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    The tracing middleware now sets the ``openstack.request_id``,"},{"line_number":5,"context_line":"    ``openstack.global_request_id``, ``openstack.project_id``,"},{"line_number":6,"context_line":"    ``openstack.user_id`` and ``openstack.domain_id`` span attributes. They"},{"line_number":7,"context_line":"    were previously read from an ``oslo.context`` key in the WSGI environment"},{"line_number":8,"context_line":"    that is never set, so spans did not include them. They are now taken from"},{"line_number":9,"context_line":"    the ``RequestId`` middleware and from the identity headers set by"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"baf9f2c7_f4b41888","line":6,"updated":"2026-11-24 17:44:08.000000000","message":"this feels like something that shoudl be valdiated in teh ci jobs as well that write the spans too the Jaeger backend.\n\ni.e. instead of just asserting the spans exist for a given service they should also assert that these fields are present in the spans","commit_id":"eace6d88a661032e34012b40165814c826218bc4"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"14cb8b22a64f022e2440484458678f379e147841","unresolved":true,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    The tracing middleware now sets the ``openstack.request_id``,"},{"line_number":5,"context_line":"    ``openstack.global_request_id``, ``openstack.project_id``,"},{"line_number":6,"context_line":"    ``openstack.user_id`` and ``openstack.domain_id`` span attributes. They"},{"line_number":7,"context_line":"    were previously read from an ``oslo.context`` key in the WSGI environment"},{"line_number":8,"context_line":"    that is never set, so spans did not include them. They are now taken from"},{"line_number":9,"context_line":"    the ``RequestId`` middleware and from the identity headers set by"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"c323bfd8_55de5974","line":6,"in_reply_to":"baf9f2c7_f4b41888","updated":"2026-11-24 17:46:27.000000000","message":"by the way it woudl also be nice if oslo middleware had a devstack job with this feature enabeld in any service to make sure it does not regress.","commit_id":"eace6d88a661032e34012b40165814c826218bc4"}]}
