Java Code Examples for brave.Span.Kind#PRODUCER

The following examples show how to use brave.Span.Kind#PRODUCER . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BraveSpan.java    From brave-opentracing with Apache License 2.0 6 votes vote down vote up
@Nullable static Kind trySetKind(String key, String value) {
  if (!Tags.SPAN_KIND.getKey().equals(key)) return null;

  Kind kind;
  if (Tags.SPAN_KIND_CLIENT.equals(value)) {
    kind = Kind.CLIENT;
  } else if (Tags.SPAN_KIND_SERVER.equals(value)) {
    kind = Kind.SERVER;
  } else if (Tags.SPAN_KIND_PRODUCER.equals(value)) {
    kind = Kind.PRODUCER;
  } else if (Tags.SPAN_KIND_CONSUMER.equals(value)) {
    kind = Kind.CONSUMER;
  } else {
    return null;
  }
  return kind;
}
 
Example 2
Source File: OpenTracing0_33_BraveSpanTest.java    From brave-opentracing with Apache License 2.0 5 votes vote down vote up
@DataProvider
public static Object[][] dataProviderKind() {
  return new Object[][] {
      {Tags.SPAN_KIND_CLIENT, Kind.CLIENT},
      {Tags.SPAN_KIND_SERVER, Kind.SERVER},
      {Tags.SPAN_KIND_PRODUCER, Kind.PRODUCER},
      {Tags.SPAN_KIND_CONSUMER, Kind.CONSUMER}
  };
}
 
Example 3
Source File: TextMapPropagation.java    From brave-opentracing with Apache License 2.0 4 votes vote down vote up
@Override public Kind spanKind() {
  return Kind.PRODUCER;
}
 
Example 4
Source File: TextMapPropagation.java    From brave with Apache License 2.0 4 votes vote down vote up
@Override public Kind spanKind() {
  return Kind.PRODUCER;
}
 
Example 5
Source File: MessageProducerRequest.java    From brave with Apache License 2.0 4 votes vote down vote up
@Override public Kind spanKind() {
  return Kind.PRODUCER;
}
 
Example 6
Source File: MessageProducerRequest.java    From brave with Apache License 2.0 4 votes vote down vote up
@Override public Kind spanKind() {
  return Kind.PRODUCER;
}
 
Example 7
Source File: MessageProducerRequest.java    From brave with Apache License 2.0 4 votes vote down vote up
@Override public Kind spanKind() {
  return Kind.PRODUCER;
}
 
Example 8
Source File: KafkaProducerRequest.java    From brave with Apache License 2.0 4 votes vote down vote up
@Override public Kind spanKind() {
  return Kind.PRODUCER;
}
 
Example 9
Source File: KafkaProducerRequest.java    From brave with Apache License 2.0 4 votes vote down vote up
@Override public Kind spanKind() {
  return Kind.PRODUCER;
}
 
Example 10
Source File: KafkaProducerRequest.java    From brave with Apache License 2.0 4 votes vote down vote up
@Override public Kind spanKind() {
  return Kind.PRODUCER;
}
 
Example 11
Source File: MessageProducerRequest.java    From brave with Apache License 2.0 4 votes vote down vote up
@Override public Kind spanKind() {
  return Kind.PRODUCER;
}
 
Example 12
Source File: MessageProducerRequest.java    From brave with Apache License 2.0 4 votes vote down vote up
@Override public Kind spanKind() {
  return Kind.PRODUCER;
}
 
Example 13
Source File: MessageProducerRequest.java    From brave with Apache License 2.0 4 votes vote down vote up
@Override public Kind spanKind() {
  return Kind.PRODUCER;
}