Skip to content

Commit

Permalink
Using 0.9.0 spi change from open telemetry (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
kewats authored Nov 5, 2020
1 parent fb7b39a commit 1eb5385
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ subprojects {
googleCloudVersion = '1.0.2'
cloudMonitoringVersion = '2.0.1'
openTelemetryVersion = '0.9.1'
openTelemetryInstrumentationVersion = '0.8.0'
openTelemetryInstrumentationVersion = '0.9.0'
junitVersion = '4.13'
mockitoVersion = '3.5.10'
opentelemetryOperationsVersion = "0.9.1" // CURRENT_RELEASE_VERSION
Expand All @@ -42,7 +42,7 @@ subprojects {
slf4j : "org.slf4j:slf4j-api:${slf4jVersion}",
opentelemetry_api : "io.opentelemetry:opentelemetry-api:${openTelemetryVersion}",
opentelemetry_sdk : "io.opentelemetry:opentelemetry-sdk:${openTelemetryVersion}",
opentelemetry_auto : "io.opentelemetry.instrumentation.auto:opentelemetry-javaagent-tooling:${openTelemetryInstrumentationVersion}",
opentelemetry_auto : "io.opentelemetry.javaagent:opentelemetry-javaagent-spi:${openTelemetryInstrumentationVersion}",
opentelemetry_operations_java: "com.google.cloud.opentelemetry:exporter-trace:${opentelemetryOperationsVersion}"
]
testLibraries = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

import com.google.auto.service.AutoService;
import com.google.cloud.opentelemetry.metric.MetricExporter;
import io.opentelemetry.javaagent.tooling.exporter.ExporterConfig;
import io.opentelemetry.javaagent.tooling.exporter.MetricExporterFactory;
import io.opentelemetry.javaagent.spi.exporter.MetricExporterFactory;

import java.io.IOException;
import java.util.Properties;

@AutoService(MetricExporterFactory.class)
public class GoogleCloudMetricExporterFactory implements MetricExporterFactory {
@Override
public MetricExporter fromConfig(ExporterConfig _config) {
public MetricExporter fromConfig(Properties _config) {
try {
return MetricExporter.createWithDefaultConfiguration();
} catch (IOException ex) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

import com.google.auto.service.AutoService;
import com.google.cloud.opentelemetry.trace.TraceExporter;
import io.opentelemetry.javaagent.tooling.exporter.ExporterConfig;
import io.opentelemetry.javaagent.tooling.exporter.SpanExporterFactory;
import io.opentelemetry.javaagent.spi.exporter.SpanExporterFactory;
import io.opentelemetry.sdk.trace.export.SpanExporter;
import java.io.IOException;
import java.util.Properties;

@AutoService(SpanExporterFactory.class)
public class GoogleCloudSpanExporterFactory implements SpanExporterFactory {
@Override
public SpanExporter fromConfig(ExporterConfig _config) {
public SpanExporter fromConfig(Properties _config) {
try {
return TraceExporter.createWithDefaultConfiguration();
} catch (IOException ex) {
Expand Down

0 comments on commit 1eb5385

Please sign in to comment.