Skip to content

Add API to azcore.Client for shallow copying with new client name #20973

Closed
@jhendrixMSFT

Description

@jhendrixMSFT

I think it would look something like this.

// WithClientName returns a shallow copy of the Client with its tracing client name changed to clientName.
//   - clientName - the fully qualified name of the client ("package.Client"); this is used by the tracing provider when creating spans
func (c *Client) WithClientName(clientName string) *Client { /*...*/ }

This is similar to how *http.Request.WithContext() works.

Metadata

Metadata

Assignees

Labels

Azure.CoreClientThis issue points to a problem in the data-plane of the library.feature-requestThis issue requires a new behavior in the product in order be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions