Interface ResourceProvider

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ResourceProvider
API to provide a Resource to be attached to all Spans created by Tracers.
Since:
4.2.0
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull io.opentelemetry.sdk.resources.Resource
     
  • Method Details

    • resource

      @NonNull @NonNull io.opentelemetry.sdk.resources.Resource resource()
      Returns:
      A Resource to be attached to all Spans created by Tracers.