Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Knut Olav Løite <koloite@gmail.com>
  • Loading branch information
surbhigarg92 and olavloite committed Feb 7, 2024
1 parent a85e494 commit 5ae1152
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,9 @@ If you are using Maven, add this to your pom.xml file
```
If you are using Gradle, add this to your dependencies
```Groovy
compile 'io.opencensus:opencensus-impl:0.30.0'
compile 'io.opencensus:opencensus-exporter-stats-stackdriver:0.30.0'
compile 'io.opentelemetry:opentelemetry-sdk:{opentelemetry.version}'
compile 'io.opentelemetry:opentelemetry-sdk-metrics:{opentelemetry.version}'
compile 'io.opentelemetry:opentelemetry-exporter-oltp:{opentelemetry.version}'
```

By default, the functionality is disabled. You need to enable OpenTelemetry metrics and must configure the OpenTelemetry with appropriate exporters at the startup of your application:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1388,12 +1388,12 @@ public static void enableOpenCensusTraces() {
}
}

@ObsoleteApi(
"The OpenCensus project is deprecated. Use enableOpenTelemetryTraces to switch to OpenTelemetry traces")
/**
* Always resets the activeTracingFramework. This variable is used for internal testing, and is
* not a valid production scenario
*/
@ObsoleteApi(
"The OpenCensus project is deprecated. Use enableOpenTelemetryTraces to switch to OpenTelemetry traces")
static void resetActiveTracingFramework() {
activeTracingFramework = null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,7 @@ public void testOpenCensusMetricsDisable() {
.setInitialWaitForSessionTimeoutMillis(50L)
.build();
FakeClock clock = new FakeClock();
clock.currentTimeMillis = System.currentTimeMillis();
clock.currentTimeMillis.set(System.currentTimeMillis());
FakeMetricRegistry metricRegistry = new FakeMetricRegistry();
List<LabelValue> labelValues =
Arrays.asList(
Expand Down Expand Up @@ -1902,7 +1902,7 @@ public void testOpenTelemetrySessionMetrics() throws Exception {
.setInitialWaitForSessionTimeoutMillis(50L)
.build();
FakeClock clock = new FakeClock();
clock.currentTimeMillis = System.currentTimeMillis();
clock.currentTimeMillis.set(System.currentTimeMillis());

InMemoryMetricReader inMemoryMetricReader = InMemoryMetricReader.create();
SdkMeterProvider sdkMeterProvider =
Expand Down

0 comments on commit 5ae1152

Please sign in to comment.