@InterfaceAudience.Private public class IpcServerSpanBuilder extends Object implements Supplier<io.opentelemetry.api.trace.Span>
Span
instances originating from the server side of an IPC.Modifier and Type | Field and Description |
---|---|
private Map<io.opentelemetry.api.common.AttributeKey<?>,Object> |
attributes |
private String |
name |
Constructor and Description |
---|
IpcServerSpanBuilder(RpcCall rpcCall) |
Modifier and Type | Method and Description |
---|---|
<T> IpcServerSpanBuilder |
addAttribute(io.opentelemetry.api.common.AttributeKey<T> key,
T value) |
io.opentelemetry.api.trace.Span |
build() |
io.opentelemetry.api.trace.Span |
get() |
IpcServerSpanBuilder |
setName(String name) |
private final Map<io.opentelemetry.api.common.AttributeKey<?>,Object> attributes
public IpcServerSpanBuilder(RpcCall rpcCall)
public io.opentelemetry.api.trace.Span get()
public IpcServerSpanBuilder setName(String name)
public <T> IpcServerSpanBuilder addAttribute(io.opentelemetry.api.common.AttributeKey<T> key, T value)
public io.opentelemetry.api.trace.Span build()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.