Skip to content

feat: Metrics tracer addAttribute map overload#3202

Merged
blakeli0 merged 5 commits intogoogleapis:mainfrom
surbhigarg92:metricsTracerAddAttribute
Sep 16, 2024
Merged

feat: Metrics tracer addAttribute map overload#3202
blakeli0 merged 5 commits intogoogleapis:mainfrom
surbhigarg92:metricsTracerAddAttribute

Conversation

@surbhigarg92
Copy link
Copy Markdown
Contributor

@surbhigarg92 surbhigarg92 commented Sep 16, 2024

This PR adds an overload for adding multiple attributes at once.

Earlier the client had to call the addAttributes method in a loop to add each attributes. Below overload takes a map and add all the attributes at once

public void addAttributes(Map<String, String> attributes) {
    this.attributes.putAll(attributes);
  };

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants