Skip to content

Commit

Permalink
chore: Fix Javaodc link
Browse files Browse the repository at this point in the history
  • Loading branch information
PerfectSlayer committed Aug 14, 2024
1 parent 6ea70e7 commit 9036354
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

import static java.util.Objects.requireNonNull;

import datadog.trace.bootstrap.instrumentation.api.AgentSpan.Attributes;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/** This class is a base implementation of {@link AgentSpanAttributes}. */
// TODO: How to link to AgentSpan.Attributes?
public class SpanAttributes implements AgentSpan.Attributes {
/** This class is a base implementation of {@link Attributes}. */
public class SpanAttributes implements Attributes {
/** Represent an empty attributes. */
public static final AgentSpan.Attributes EMPTY = new SpanAttributes(Collections.emptyMap());
public static final Attributes EMPTY = new SpanAttributes(Collections.emptyMap());

private final Map<String, String> attributes;

Expand Down Expand Up @@ -115,7 +115,7 @@ protected <T> Builder putArray(String key, List<T> array) {
return this;
}

public AgentSpan.Attributes build() {
public Attributes build() {
return new SpanAttributes(this.attributes);
}
}
Expand Down

0 comments on commit 9036354

Please sign in to comment.