Interface SloServiceAttributes.Builder

  • Method Details

    • serviceName

      SloServiceAttributes.Builder serviceName(String serviceName)

      The name of the service, the OpenTelemetry service.name attribute.

      Parameters:
      serviceName - The name of the service, the OpenTelemetry service.name attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serviceNamespace

      SloServiceAttributes.Builder serviceNamespace(String serviceNamespace)

      The namespace of the service, the OpenTelemetry service.namespace attribute.

      Parameters:
      serviceNamespace - The namespace of the service, the OpenTelemetry service.namespace attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cloudProvider

      SloServiceAttributes.Builder cloudProvider(String cloudProvider)

      The cloud provider the service runs on, the OpenTelemetry cloud.provider attribute, such as aws.

      Parameters:
      cloudProvider - The cloud provider the service runs on, the OpenTelemetry cloud.provider attribute, such as aws.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cloudAccountId

      SloServiceAttributes.Builder cloudAccountId(String cloudAccountId)

      The cloud account the service runs in, the OpenTelemetry cloud.account.id attribute.

      Parameters:
      cloudAccountId - The cloud account the service runs in, the OpenTelemetry cloud.account.id attribute.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cloudRegion

      SloServiceAttributes.Builder cloudRegion(String cloudRegion)

      The cloud region the service runs in, the OpenTelemetry cloud.region attribute, such as us-east-1.

      Parameters:
      cloudRegion - The cloud region the service runs in, the OpenTelemetry cloud.region attribute, such as us-east-1.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deploymentEnvironmentName

      SloServiceAttributes.Builder deploymentEnvironmentName(String deploymentEnvironmentName)

      The deployment environment of the service, the OpenTelemetry deployment.environment.name attribute, such as prod.

      Parameters:
      deploymentEnvironmentName - The deployment environment of the service, the OpenTelemetry deployment.environment.name attribute, such as prod.
      Returns:
      Returns a reference to this object so that method calls can be chained together.