All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zalando.riptide.opentracing.DefaultActivation Maven / Gradle / Ivy

package org.zalando.riptide.opentracing;

import io.opentracing.Scope;
import io.opentracing.Span;
import io.opentracing.Tracer;
import lombok.AllArgsConstructor;
import org.apiguardian.api.API;

import static org.apiguardian.api.API.Status.EXPERIMENTAL;

/**
 * @see Tracer#activateSpan(Span)
 * @see Scope#close()
 */
@API(status = EXPERIMENTAL)
@AllArgsConstructor
public final class DefaultActivation implements Activation {

    @Override
    public Scope activate(final Tracer tracer, final Span span) {
        return tracer.activateSpan(span);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy