Class ObjectMapExporter

java.lang.Object
com.vaadin.extension.instrumentation.client.ObjectMapExporter
All Implemented Interfaces:
BiConsumer<String,Map<String,Object>>

public class ObjectMapExporter extends Object implements BiConsumer<String,Map<String,Object>>
This is a consumer callback that is injected into an ObservabilityHandler instance. It handles the export of a Frontend Observability trace. This consists of a resource, representing the span processor, one or more scopes, representing the instrumentation type, and for each of those, one or more spans.
  • Constructor Details

    • ObjectMapExporter

      public ObjectMapExporter()
  • Method Details

    • accept

      public void accept(String id, Map<String,Object> objectMap)
      Accepts an observability trace and exports the spans found within it.
      Specified by:
      accept in interface BiConsumer<String,Map<String,Object>>
      Parameters:
      id - the ID of the installed handler
      objectMap - the object map of the observability trace