Class NexusOperationContextImpl

    • Constructor Detail

      • NexusOperationContextImpl

        public NexusOperationContextImpl​(java.lang.String namespace,
                                         java.lang.String taskQueue,
                                         WorkflowClient client,
                                         com.uber.m3.tally.Scope metricsScope)
    • Method Detail

      • getMetricsScope

        public com.uber.m3.tally.Scope getMetricsScope()
        Description copied from interface: NexusOperationContext
        Get scope for reporting business metrics in a nexus handler. This scope is tagged with the service and operation.

        The original metrics scope is set through ServiceStubsOptions.Builder.setMetricsScope(Scope) when a worker starts up.

        Specified by:
        getMetricsScope in interface NexusOperationContext
      • getTaskQueue

        public java.lang.String getTaskQueue()
      • getNamespace

        public java.lang.String getNamespace()