Skip to content

Per-request debug logging fails when request is repeated #8262

Description

@chlowell

NetworkTraceLoggingPolicy supports enabling debug-level logging for a single request. This is implemented with the logging_enable kwarg, e.g. using Key Vault:

key_client.get_key("rsakey", logging_enable=True)

As implemented, logging_enable becomes an entry in the pipeline request's context.options dictionary. NetworkTraceLoggingPolicy pops this out. Should the request be sent again, e.g. by the retry policy, logging_enable won't be present in the options dictionary, and the repeated request won't be logged by NetworkTraceLoggingPolicy.

Metadata

Metadata

Assignees

Labels

Azure.CoreClientThis issue points to a problem in the data-plane of the library.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions