Package org.opends.server.protocols.ldap
Class LdapRequestTrace
java.lang.Object
org.opends.server.protocols.ldap.LdapRequestTrace
Represents a OpenTelemetry trace for a single request.
-
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.context.Context
setRequestSpanAttributes
(int ldapVersion) Adds the span attributes for the request and returns a tracing context.void
setResultSpanAttributes
(Result result) Adds the span attributes for the result.static LdapRequestTrace
startTrace
(ServerContext serverContext, RequestContext requestContext, Request request) Start tracing a request.
-
Method Details
-
setRequestSpanAttributes
public io.opentelemetry.context.Context setRequestSpanAttributes(int ldapVersion) Adds the span attributes for the request and returns a tracing context.- Parameters:
ldapVersion
- The LDAP version.- Returns:
- The tracing context.
-
setResultSpanAttributes
Adds the span attributes for the result.- Parameters:
result
- The result.
-
startTrace
public static LdapRequestTrace startTrace(ServerContext serverContext, RequestContext requestContext, Request request) Start tracing a request.- Parameters:
serverContext
- The server context.requestContext
- The request context.request
- The request.- Returns:
- The tracing context.
-