Class ResourceTranslator


  • public class ResourceTranslator
    extends java.lang.Object
    Translates from OpenTelemetry Resource into Google Cloud's notion of resource.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static GcpResource mapResource​(io.opentelemetry.sdk.resources.Resource resource)
      Converts a Java OpenTelemetry SDK resource into a GCP resource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • mapResource

        public static GcpResource mapResource​(io.opentelemetry.sdk.resources.Resource resource)
        Converts a Java OpenTelemetry SDK resource into a GCP resource.