Interface ComponentProvider<T>

    • Method Detail

      • getType

        java.lang.Class<T> getType()
        The type of SDK extension component. For example, if providing instances of a custom span exporter, the type would be SpanExporter.
      • getName

        java.lang.String getName()
        The name of the exporter, to be referenced in configuration files. For example, if providing instances of a custom span exporter for the "acme" protocol, the name might be "acme".

        This name MUST not be the same as any other component provider name which returns components of the same type. In other words, getType() and name form a composite key uniquely identifying the provider.

      • create

        T create​(StructuredConfigProperties config)
        Configure an instance of the SDK extension component according to the config.
        Parameters:
        config - the configuration provided where the component is referenced in a configuration file.
        Returns:
        an instance the SDK extension component