Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mutianf committed Dec 13, 2024
1 parent 3ceab08 commit ddbcfce
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import com.google.cloud.opentelemetry.detection.GCPPlatformDetector;
import com.google.common.base.MoreObjects;
import com.google.common.base.Preconditions;
import com.google.common.base.Stopwatch;
import com.google.common.collect.ImmutableSet;
import com.google.monitoring.v3.Point;
import com.google.monitoring.v3.TimeInterval;
Expand Down Expand Up @@ -158,7 +159,9 @@ static List<TimeSeries> convertToApplicationResourceTimeSeries(
@Nullable
static MonitoredResource detectResource() {
GCPPlatformDetector detector = GCPPlatformDetector.DEFAULT_INSTANCE;
Stopwatch stopwatch = Stopwatch.createStarted();
DetectedPlatform detectedPlatform = detector.detectPlatform();
System.out.println("detect took" + stopwatch.elapsed());
MonitoredResource monitoredResource = null;
try {
switch (detectedPlatform.getSupportedPlatform()) {
Expand Down

0 comments on commit ddbcfce

Please sign in to comment.