Replace everywhere OpenConsensus with OpenTelemetry (#244)

* Replace everywhere OpenConsensus with OpenTelemetry

* Fix javadoc references.

* Update javadoc exclude in the api.
This commit is contained in:
Bogdan Drutu 2019-05-02 13:46:04 -07:00 committed by GitHub
parent 8267b1cae9
commit ca0ec9dfa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
267 changed files with 1122 additions and 1119 deletions

View File

@ -57,7 +57,7 @@ $ git commit -m "Update javadoc for API."
constructors to all AutoValue classes to prevent classes in other packages
from extending them.
## Building openconsensus-java
## Building opentelemetry-java
Continuous integration builds the project, runs the tests, and runs multiple
types of static analysis.

View File

@ -82,7 +82,7 @@ We plan to merge projects and pave the path for future improvements as a unified
community of tracing vendors, users and library authors who wants apps be
managed better. We are open to feedback and suggestions from all of you!
[travis-image]: https://travis-ci.org/bogdandrutu/openconsensus.svg?branch=master
[travis-url]: https://travis-ci.org/bogdandrutu/openconsensus
[travis-image]: https://travis-ci.org/bogdandrutu/opentelemetry.svg?branch=master
[travis-url]: https://travis-ci.org/bogdandrutu/opentelemetry
[gitter-image]: https://badges.gitter.im/census-instrumentation/big-hook.svg
[gitter-url]: https://gitter.im/census-instrumentation/big-hook?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

View File

@ -1,6 +1,6 @@
OpenConsensus API
OpenTelemetry API
======================================================
* Java 7 and Android 14 compatible.
* The abstract classes in this directory can be subclassed to create alternative
implementations of the OpenConsensus library.
implementations of the OpenTelemetry library.

View File

@ -1,4 +1,4 @@
description = 'OpenConsensus API'
description = 'OpenTelemetry API'
dependencies {
api libraries.grpc_context
@ -10,5 +10,5 @@ dependencies {
}
javadoc {
exclude 'openconsensus/internal/**'
exclude 'io/opentelemetry/internal/**'
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.context;
package io.opentelemetry.context;
/** A {@link Scope} that does nothing when it is created or closed. */
public final class NoopScope implements Scope {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.context;
package io.opentelemetry.context;
import java.io.Closeable;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.context.propagation;
package io.opentelemetry.context.propagation;
/**
* Formatter to serializing and deserializing a value with into a binary format.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.context.propagation;
package io.opentelemetry.context.propagation;
import java.util.List;
import javax.annotation.Nullable;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.internal;
package io.opentelemetry.internal;
/** Internal utility methods for working with tag keys, tag values, and metric names. */
public final class StringUtils {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.internal;
package io.opentelemetry.internal;
import java.util.List;
import java.util.Map;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -15,9 +15,9 @@
*/
/**
* Interfaces and implementations that are internal to OpenConsensus.
* Interfaces and implementations that are internal to OpenTelemetry.
*
* <p>All the content under this package and its subpackages are considered not part of the public
* API, and should not be used by users of the OpenConsensus library.
* API, and should not be used by users of the OpenTelemetry library.
*/
package openconsensus.internal;
package io.opentelemetry.internal;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import java.util.List;
import javax.annotation.concurrent.ThreadSafe;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,11 +14,11 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import io.opentelemetry.metrics.CounterLong.TimeSeries;
import java.util.List;
import javax.annotation.concurrent.ThreadSafe;
import openconsensus.metrics.CounterLong.TimeSeries;
/**
* Counter metric, to report instantaneous measurement of a long value. Cumulative values can go up

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,11 +14,11 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import io.opentelemetry.metrics.GaugeDouble.TimeSeries;
import java.util.List;
import javax.annotation.concurrent.ThreadSafe;
import openconsensus.metrics.GaugeDouble.TimeSeries;
/**
* Gauge metric, to report instantaneous measurement of a double value. Gauges can go both up and

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import java.util.List;
import javax.annotation.concurrent.ThreadSafe;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import com.google.auto.value.AutoValue;
import javax.annotation.concurrent.Immutable;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import com.google.auto.value.AutoValue;
import javax.annotation.Nullable;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
/** Entry point fot metrics API, this object allows to create new {@link MetricRegistry}. */
public interface Meter {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import java.util.Collections;
import java.util.List;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,9 +14,9 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import openconsensus.resource.Resource;
import io.opentelemetry.resource.Resource;
/**
* Creates and manages a set of metrics for a library/application.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
/**
* Class for accessing the default {@link Meter}.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,12 +14,12 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import io.opentelemetry.internal.Utils;
import io.opentelemetry.resource.Resource;
import java.util.List;
import java.util.Map;
import openconsensus.internal.Utils;
import openconsensus.resource.Resource;
/**
* No-op implementations of metrics classes.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -15,4 +15,4 @@
*/
/** This package describes the Metrics API that can be used to record application Metrics. */
package openconsensus.metrics;
package io.opentelemetry.metrics;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,17 +14,17 @@
* limitations under the License.
*/
package openconsensus.resource;
package io.opentelemetry.resource;
import com.google.auto.value.AutoValue;
import io.opentelemetry.internal.StringUtils;
import io.opentelemetry.internal.Utils;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
import openconsensus.internal.StringUtils;
import openconsensus.internal.Utils;
/**
* {@link Resource} represents a resource, which capture identifying information about the entities

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -34,4 +34,4 @@
* zero. They SHOULD start with a domain name and separate hierarchies with / characters, e.g.
* k8s.io/namespace/name.
*/
package openconsensus.resource;
package io.opentelemetry.resource;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,12 +14,12 @@
* limitations under the License.
*/
package openconsensus.stats;
package io.opentelemetry.stats;
import javax.annotation.concurrent.ThreadSafe;
/**
* The definition of a {@link Measurement} that is taken by OpenConsensus library.
* The definition of a {@link Measurement} that is taken by OpenTelemetry library.
*
* @since 0.1.0
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.stats;
package io.opentelemetry.stats;
import javax.annotation.concurrent.Immutable;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,15 +14,15 @@
* limitations under the License.
*/
package openconsensus.stats;
package io.opentelemetry.stats;
import io.opentelemetry.internal.StringUtils;
import io.opentelemetry.internal.Utils;
import io.opentelemetry.tags.TagMap;
import io.opentelemetry.trace.SpanContext;
import java.util.List;
import javax.annotation.concurrent.Immutable;
import javax.annotation.concurrent.ThreadSafe;
import openconsensus.internal.StringUtils;
import openconsensus.internal.Utils;
import openconsensus.tags.TagMap;
import openconsensus.trace.SpanContext;
/**
* No-op implementations of stats classes.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.stats;
package io.opentelemetry.stats;
/**
* Class for accessing the global {@link StatsRecorder}.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,12 +14,13 @@
* limitations under the License.
*/
package openconsensus.stats;
package io.opentelemetry.stats;
import io.opentelemetry.tags.TagMap;
import io.opentelemetry.tags.Tagger;
import io.opentelemetry.trace.SpanContext;
import java.util.List;
import javax.annotation.concurrent.ThreadSafe;
import openconsensus.tags.TagMap;
import openconsensus.trace.SpanContext;
/**
* Provides methods to record stats against tags.
@ -40,8 +41,7 @@ public interface StatsRecorder {
Measure.Builder measureBuilder(String name);
/**
* Records all given measurements, with the current {@link
* openconsensus.tags.Tagger#getCurrentTagMap}.
* Records all given measurements, with the current {@link Tagger#getCurrentTagMap}.
*
* @param measurements the list of {@code Measurement}s to record.
* @since 0.1.0

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -17,4 +17,4 @@
/** API for stats recording. */
// TODO: Add more details.
// TODO: Add code examples.
package openconsensus.stats;
package io.opentelemetry.stats;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import java.util.Collections;
import java.util.Iterator;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,16 +14,16 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import io.opentelemetry.context.NoopScope;
import io.opentelemetry.context.Scope;
import io.opentelemetry.context.propagation.BinaryFormat;
import io.opentelemetry.context.propagation.HttpTextFormat;
import io.opentelemetry.internal.Utils;
import java.util.Collections;
import java.util.List;
import javax.annotation.concurrent.Immutable;
import openconsensus.context.NoopScope;
import openconsensus.context.Scope;
import openconsensus.context.propagation.BinaryFormat;
import openconsensus.context.propagation.HttpTextFormat;
import openconsensus.internal.Utils;
/**
* No-op implementations of tagging classes.
@ -115,8 +115,7 @@ public final class NoopTags {
}
@Immutable
private static final class NoopBinaryFormat
implements openconsensus.context.propagation.BinaryFormat<TagMap> {
private static final class NoopBinaryFormat implements BinaryFormat<TagMap> {
static final byte[] EMPTY_BYTE_ARRAY = {};
@Override
@ -133,8 +132,7 @@ public final class NoopTags {
}
@Immutable
private static final class NoopHttpTextFormat
implements openconsensus.context.propagation.HttpTextFormat<TagMap> {
private static final class NoopHttpTextFormat implements HttpTextFormat<TagMap> {
@Override
public List<String> fields() {
return Collections.emptyList();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,11 +14,11 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import com.google.auto.value.AutoValue;
import io.opentelemetry.tags.TagMetadata.TagTtl;
import javax.annotation.concurrent.Immutable;
import openconsensus.tags.TagMetadata.TagTtl;
/**
* {@link TagKey} paired with a {@link TagValue}.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,12 +14,12 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import com.google.auto.value.AutoValue;
import io.opentelemetry.internal.StringUtils;
import io.opentelemetry.internal.Utils;
import javax.annotation.concurrent.Immutable;
import openconsensus.internal.StringUtils;
import openconsensus.internal.Utils;
/**
* A key to a value stored in a {@link TagMap}.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import java.util.Iterator;
import javax.annotation.Nullable;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,9 +14,9 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import openconsensus.context.Scope;
import io.opentelemetry.context.Scope;
/**
* Builder for the {@link TagMap} class.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import com.google.auto.value.AutoValue;
import javax.annotation.concurrent.Immutable;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,12 +14,12 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import com.google.auto.value.AutoValue;
import io.opentelemetry.internal.StringUtils;
import io.opentelemetry.internal.Utils;
import javax.annotation.concurrent.Immutable;
import openconsensus.internal.StringUtils;
import openconsensus.internal.Utils;
/**
* A validated tag value.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,11 +14,11 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import openconsensus.context.Scope;
import openconsensus.context.propagation.BinaryFormat;
import openconsensus.context.propagation.HttpTextFormat;
import io.opentelemetry.context.Scope;
import io.opentelemetry.context.propagation.BinaryFormat;
import io.opentelemetry.context.propagation.HttpTextFormat;
/**
* Object for creating new {@link TagMap}s and {@code TagMap}s based on the current context.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
/**
* Class to access the global {@link Tagger}.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -19,14 +19,14 @@
*
* <p>This package manages a set of tags in the {@code io.grpc.Context}. The tags can be used to
* label anything that is associated with a specific operation. For example, the {@code
* openconsensus.stats} package labels all stats with the current tags.
* opentelemetry.stats} package labels all stats with the current tags.
*
* <p>{@link openconsensus.tags.Tag Tags} are key-value pairs. The {@link openconsensus.tags.TagKey
* keys} and {@link openconsensus.tags.TagValue values} are wrapped {@code String}s. They are stored
* as a map in a {@link openconsensus.tags.TagMap}.
* <p>{@link io.opentelemetry.tags.Tag Tags} are key-value pairs. The {@link
* io.opentelemetry.tags.TagKey keys} and {@link io.opentelemetry.tags.TagValue values} are wrapped
* {@code String}s. They are stored as a map in a {@link io.opentelemetry.tags.TagMap}.
*
* <p>Note that tags are independent of the tracing data that is propagated in the {@code
* io.grpc.Context}, such as trace ID.
*/
// TODO: Add code examples.
package openconsensus.tags;
package io.opentelemetry.tags;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,12 +14,12 @@
* limitations under the License.
*/
package openconsensus.tags.unsafe;
package io.opentelemetry.tags.unsafe;
import io.grpc.Context;
import openconsensus.internal.Utils;
import openconsensus.tags.EmptyTagMap;
import openconsensus.tags.TagMap;
import io.opentelemetry.internal.Utils;
import io.opentelemetry.tags.EmptyTagMap;
import io.opentelemetry.tags.TagMap;
/**
* Utility methods for accessing the {@link TagMap} contained in the {@link io.grpc.Context}.
@ -31,7 +31,7 @@ import openconsensus.tags.TagMap;
*/
public final class ContextUtils {
private static final Context.Key<TagMap> TAG_MAP_KEY =
Context.keyWithDefault("openconsensus-tag-map-key", EmptyTagMap.INSTANCE);
Context.keyWithDefault("opentelemetry-tag-map-key", EmptyTagMap.INSTANCE);
/**
* Creates a new {@code Context} with the given value set.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,11 +14,11 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import com.google.auto.value.AutoValue;
import io.opentelemetry.internal.Utils;
import javax.annotation.concurrent.Immutable;
import openconsensus.internal.Utils;
/**
* A class that represents all the possible values for an attribute. An attribute can have 4 types

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,10 +14,10 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import io.opentelemetry.internal.Utils;
import java.util.Arrays;
import openconsensus.internal.Utils;
final class BigendianEncoding {
static final int LONG_BYTES = Long.SIZE / Byte.SIZE;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,11 +14,11 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import io.opentelemetry.internal.Utils;
import java.util.Map;
import javax.annotation.concurrent.Immutable;
import openconsensus.internal.Utils;
/**
* The {@code BlankSpan} is a singleton class, which is the default {@link Span} that is used when

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,14 +14,14 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import com.google.auto.value.AutoValue;
import io.opentelemetry.internal.Utils;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.concurrent.Immutable;
import openconsensus.internal.Utils;
/**
* A text annotation with a set of attributes.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import com.google.auto.value.AutoValue;
import java.util.Collections;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,18 +14,18 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import io.opentelemetry.context.NoopScope;
import io.opentelemetry.context.Scope;
import io.opentelemetry.context.propagation.BinaryFormat;
import io.opentelemetry.context.propagation.HttpTextFormat;
import io.opentelemetry.internal.Utils;
import io.opentelemetry.resource.Resource;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Callable;
import javax.annotation.Nullable;
import openconsensus.context.NoopScope;
import openconsensus.context.Scope;
import openconsensus.context.propagation.BinaryFormat;
import openconsensus.context.propagation.HttpTextFormat;
import openconsensus.internal.Utils;
import openconsensus.resource.Resource;
/**
* No-op implementations of trace classes.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import java.util.List;
import javax.annotation.Nullable;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import java.util.List;
import java.util.Map;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import java.util.Arrays;
import javax.annotation.Nullable;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2017, OpenConsensus Authors
* Copyright 2017, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,9 +14,12 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import com.google.auto.value.AutoValue;
import io.opentelemetry.internal.Utils;
import io.opentelemetry.resource.Resource;
import io.opentelemetry.trace.Span.Kind;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.ArrayList;
@ -26,9 +29,6 @@ import java.util.List;
import java.util.Map;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
import openconsensus.internal.Utils;
import openconsensus.resource.Resource;
import openconsensus.trace.Span.Kind;
/**
* Immutable representation of all data collected by the {@link Span} class.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,11 +14,11 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import io.opentelemetry.internal.Utils;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
import openconsensus.internal.Utils;
/**
* A class that represents a span identifier. A valid span identifier is an 8-byte array with at

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,8 +14,9 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import io.opentelemetry.internal.Utils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@ -23,7 +24,6 @@ import java.util.List;
import java.util.TreeMap;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
import openconsensus.internal.Utils;
/**
* Defines the status of a {@link Span} by providing a standard {@link CanonicalCode} in conjunction

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
/**
* Class that manages a global instance of the {@link Tracer}.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,11 +14,11 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import io.opentelemetry.internal.Utils;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
import openconsensus.internal.Utils;
/**
* A class that represents a trace identifier. A valid trace identifier is a 16-byte array with at

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,17 +14,17 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import io.opentelemetry.internal.Utils;
import java.util.Arrays;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
import openconsensus.internal.Utils;
/**
* A class that represents global trace options. These options are propagated to all child {@link
* openconsensus.trace.Span spans}. These determine features such as whether a {@code Span} should
* be traced. It is implemented as a bitmask.
* Span spans}. These determine features such as whether a {@code Span} should be traced. It is
* implemented as a bitmask.
*
* @since 0.1.0
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,15 +14,15 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import com.google.errorprone.annotations.MustBeClosed;
import io.opentelemetry.context.Scope;
import io.opentelemetry.context.propagation.BinaryFormat;
import io.opentelemetry.context.propagation.HttpTextFormat;
import io.opentelemetry.resource.Resource;
import java.util.concurrent.Callable;
import javax.annotation.Nullable;
import openconsensus.context.Scope;
import openconsensus.context.propagation.BinaryFormat;
import openconsensus.context.propagation.HttpTextFormat;
import openconsensus.resource.Resource;
/**
* Tracer is a simple, interface for {@link Span} creation and in-process context interaction.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,14 +14,14 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import com.google.auto.value.AutoValue;
import io.opentelemetry.internal.Utils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.annotation.concurrent.Immutable;
import openconsensus.internal.Utils;
/**
* Carries tracing-system specific context in a list of key-value pairs. TraceState allows different

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -23,11 +23,11 @@
* <p>Trace represents a tree of spans. A trace has a root span that encapsulates all the spans from
* start to end, and the children spans being the distinct calls invoked in between.
*
* <p>{@link openconsensus.trace.Span} represents a single operation within a trace.
* <p>{@link io.opentelemetry.trace.Span} represents a single operation within a trace.
*
* <p>{@link openconsensus.trace.Span Spans} are propagated in-process in the {@code
* <p>{@link io.opentelemetry.trace.Span Spans} are propagated in-process in the {@code
* io.grpc.Context} and between process using one of the wire propagation formats supported in the
* {@code openconsensus.trace.propagation} package.
* {@code opentelemetry.trace.propagation} package.
*/
// TODO: Add code examples.
package openconsensus.trace;
package io.opentelemetry.trace;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,16 +14,16 @@
* limitations under the License.
*/
package openconsensus.trace.samplers;
package io.opentelemetry.trace.samplers;
import io.opentelemetry.trace.Sampler;
import io.opentelemetry.trace.Span;
import io.opentelemetry.trace.SpanContext;
import io.opentelemetry.trace.SpanId;
import io.opentelemetry.trace.TraceId;
import java.util.List;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
import openconsensus.trace.Sampler;
import openconsensus.trace.Span;
import openconsensus.trace.SpanContext;
import openconsensus.trace.SpanId;
import openconsensus.trace.TraceId;
/** Sampler that always makes a "yes" decision on {@link Span} sampling. */
@Immutable

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,16 +14,16 @@
* limitations under the License.
*/
package openconsensus.trace.samplers;
package io.opentelemetry.trace.samplers;
import io.opentelemetry.trace.Sampler;
import io.opentelemetry.trace.Span;
import io.opentelemetry.trace.SpanContext;
import io.opentelemetry.trace.SpanId;
import io.opentelemetry.trace.TraceId;
import java.util.List;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
import openconsensus.trace.Sampler;
import openconsensus.trace.Span;
import openconsensus.trace.SpanContext;
import openconsensus.trace.SpanId;
import openconsensus.trace.TraceId;
/** Sampler that always makes a "no" decision on {@link Span} sampling. */
@Immutable

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,10 +14,10 @@
* limitations under the License.
*/
package openconsensus.trace.samplers;
package io.opentelemetry.trace.samplers;
import openconsensus.trace.Sampler;
import openconsensus.trace.Span;
import io.opentelemetry.trace.Sampler;
import io.opentelemetry.trace.Span;
/**
* Static class to access a set of pre-defined {@link Sampler Samplers}.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,13 +14,13 @@
* limitations under the License.
*/
package openconsensus.trace.unsafe;
package io.opentelemetry.trace.unsafe;
import io.grpc.Context;
import openconsensus.internal.Utils;
import openconsensus.trace.BlankSpan;
import openconsensus.trace.Span;
import openconsensus.trace.Tracer;
import io.opentelemetry.internal.Utils;
import io.opentelemetry.trace.BlankSpan;
import io.opentelemetry.trace.Span;
import io.opentelemetry.trace.Tracer;
/**
* Util methods/functionality to interact with the {@link io.grpc.Context}.
@ -32,7 +32,7 @@ import openconsensus.trace.Tracer;
*/
public final class ContextUtils {
private static final Context.Key<Span> CONTEXT_SPAN_KEY =
Context.keyWithDefault("openconsensus-trace-span-key", BlankSpan.INSTANCE);
Context.keyWithDefault("opentelemetry-trace-span-key", BlankSpan.INSTANCE);
/**
* Creates a new {@code Context} with the given value set.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.internal;
package io.opentelemetry.internal;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.internal;
package io.opentelemetry.internal;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import java.util.ArrayList;
import java.util.Collections;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import java.util.ArrayList;
import java.util.Collections;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import java.util.ArrayList;
import java.util.Collections;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import java.util.ArrayList;
import java.util.Collections;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import org.junit.Rule;
import org.junit.Test;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.metrics;
package io.opentelemetry.metrics;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.resource;
package io.opentelemetry.resource;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.stats;
package io.opentelemetry.stats;
import java.util.Arrays;
import org.junit.Rule;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,16 +14,16 @@
* limitations under the License.
*/
package openconsensus.stats;
package io.opentelemetry.stats;
import io.opentelemetry.tags.Tag;
import io.opentelemetry.tags.TagKey;
import io.opentelemetry.tags.TagMap;
import io.opentelemetry.tags.TagValue;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import javax.annotation.Nullable;
import openconsensus.tags.Tag;
import openconsensus.tags.TagKey;
import openconsensus.tags.TagMap;
import openconsensus.tags.TagValue;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.stats;
package io.opentelemetry.stats;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,16 +14,16 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import static com.google.common.truth.Truth.assertThat;
import com.google.common.collect.Lists;
import io.opentelemetry.context.NoopScope;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import javax.annotation.Nullable;
import openconsensus.context.NoopScope;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,12 +14,12 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import static com.google.common.truth.Truth.assertThat;
import com.google.common.testing.EqualsTester;
import openconsensus.tags.TagMetadata.TagTtl;
import io.opentelemetry.tags.TagMetadata.TagTtl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,12 +14,12 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import static com.google.common.truth.Truth.assertThat;
import com.google.common.testing.EqualsTester;
import openconsensus.tags.TagMetadata.TagTtl;
import io.opentelemetry.tags.TagMetadata.TagTtl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.tags;
package io.opentelemetry.tags;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,12 +14,12 @@
* limitations under the License.
*/
package openconsensus.tags.unsafe;
package io.opentelemetry.tags.unsafe;
import static com.google.common.truth.Truth.assertThat;
import io.grpc.Context;
import openconsensus.tags.TagMap;
import io.opentelemetry.tags.TagMap;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,13 +14,13 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import static com.google.common.truth.Truth.assertThat;
import io.opentelemetry.trace.Span.Kind;
import io.opentelemetry.trace.samplers.Samplers;
import java.util.concurrent.Callable;
import openconsensus.trace.Span.Kind;
import openconsensus.trace.samplers.Samplers;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import java.util.Random;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import static com.google.common.truth.Truth.assertThat;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,12 +14,12 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import static com.google.common.truth.Truth.assertThat;
import io.opentelemetry.context.Scope;
import java.util.concurrent.Callable;
import openconsensus.context.Scope;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

View File

@ -1,5 +1,5 @@
/*
* Copyright 2019, OpenConsensus Authors
* Copyright 2019, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -14,13 +14,13 @@
* limitations under the License.
*/
package openconsensus.trace;
package io.opentelemetry.trace;
import static com.google.common.truth.Truth.assertThat;
import com.google.common.testing.EqualsTester;
import io.opentelemetry.trace.Tracestate.Entry;
import java.util.Arrays;
import openconsensus.trace.Tracestate.Entry;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

Some files were not shown because too many files have changed in this diff Show More