Home
last modified time | relevance | path

Searched refs:SpanContextParseException (Results 1 – 16 of 16) sorted by relevance

/external/opencensus-java/contrib/http_util/src/test/java/io/opencensus/contrib/http/util/
DCloudTraceFormatTest.java31 import io.opencensus.trace.propagation.SpanContextParseException;
102 throws SpanContextParseException { in parseSuccess()
110 throws SpanContextParseException { in parseFailure()
119 public void serializeSampledContextShouldSucceed() throws SpanContextParseException { in serializeSampledContextShouldSucceed()
128 public void serializeNotSampledContextShouldSucceed() throws SpanContextParseException { in serializeNotSampledContextShouldSucceed()
138 public void parseSampledShouldSucceed() throws SpanContextParseException { in parseSampledShouldSucceed()
145 public void parseNotSampledShouldSucceed() throws SpanContextParseException { in parseNotSampledShouldSucceed()
152 public void parseMissingTraceOptionsShouldSucceed() throws SpanContextParseException { in parseMissingTraceOptionsShouldSucceed()
159 public void parseEmptyTraceOptionsShouldFail() throws SpanContextParseException { in parseEmptyTraceOptionsShouldFail()
162 SpanContextParseException.class, in parseEmptyTraceOptionsShouldFail()
[all …]
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/propagation/
DBinaryFormatImplTest.java27 import io.opencensus.trace.propagation.SpanContextParseException;
54 private void testSpanContextConversion(SpanContext spanContext) throws SpanContextParseException { in testSpanContextConversion()
64 public void propagate_SpanContextTracingEnabled() throws SpanContextParseException { in propagate_SpanContextTracingEnabled()
70 public void propagate_SpanContextNoTracing() throws SpanContextParseException { in propagate_SpanContextNoTracing()
89 public void fromBinaryValue_BinaryExampleValue() throws SpanContextParseException { in fromBinaryValue_BinaryExampleValue()
94 public void fromBinaryValue_NullInput() throws SpanContextParseException { in fromBinaryValue_NullInput()
99 public void fromBinaryValue_EmptyInput() throws SpanContextParseException { in fromBinaryValue_EmptyInput()
100 expectedException.expect(SpanContextParseException.class); in fromBinaryValue_EmptyInput()
106 public void fromBinaryValue_UnsupportedVersionId() throws SpanContextParseException { in fromBinaryValue_UnsupportedVersionId()
107 expectedException.expect(SpanContextParseException.class); in fromBinaryValue_UnsupportedVersionId()
[all …]
DB3FormatTest.java30 import io.opencensus.trace.propagation.SpanContextParseException;
90 public void parseMissingSampledAndMissingFlag() throws SpanContextParseException { in parseMissingSampledAndMissingFlag()
99 public void parseSampled() throws SpanContextParseException { in parseSampled()
109 public void parseZeroSampled() throws SpanContextParseException { in parseZeroSampled()
119 public void parseFlag() throws SpanContextParseException { in parseFlag()
129 public void parseZeroFlag() throws SpanContextParseException { in parseZeroFlag()
139 public void parseEightBytesTraceId() throws SpanContextParseException { in parseEightBytesTraceId()
149 public void parseEightBytesTraceId_NotSampledSpanContext() throws SpanContextParseException { in parseEightBytesTraceId_NotSampledSpanContext()
158 public void parseInvalidTraceId() throws SpanContextParseException { in parseInvalidTraceId()
162 thrown.expect(SpanContextParseException.class); in parseInvalidTraceId()
[all …]
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/propagation/
DBinaryFormatImpl.java28 import io.opencensus.trace.propagation.SpanContextParseException;
109 public SpanContext fromByteArray(byte[] bytes) throws SpanContextParseException { in fromByteArray()
112 throw new SpanContextParseException("Unsupported version."); in fromByteArray()
115 throw new SpanContextParseException("Invalid input: truncated"); in fromByteArray()
128 throw new SpanContextParseException("Invalid input: expected trace ID at offset " + pos); in fromByteArray()
135 throw new SpanContextParseException("Invalid input: expected span ID at offset " + pos); in fromByteArray()
142 throw new SpanContextParseException("Invalid input: truncated"); in fromByteArray()
DB3Format.java27 import io.opencensus.trace.propagation.SpanContextParseException;
81 throws SpanContextParseException { in extract()
94 throw new SpanContextParseException("Missing X_B3_TRACE_ID."); in extract()
101 throw new SpanContextParseException("Missing X_B3_SPAN_ID."); in extract()
110 throw new SpanContextParseException("Invalid input.", e); in extract()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/propagation/
DSpanContextParseException.java24 public final class SpanContextParseException extends Exception { class
33 public SpanContextParseException(String message) { in SpanContextParseException() method in SpanContextParseException
44 public SpanContextParseException(String message, Throwable cause) { in SpanContextParseException() method in SpanContextParseException
DBinaryFormat.java109 } catch (SpanContextParseException e) { in fromBinaryValue()
123 public SpanContext fromByteArray(byte[] bytes) throws SpanContextParseException { in fromByteArray()
128 throw new SpanContextParseException("Error while parsing.", e); in fromByteArray()
DTextFormat.java146 C carrier, Getter<C> getter) throws SpanContextParseException; in extract()
/external/opencensus-java/api/src/test/java/io/opencensus/trace/propagation/
DSpanContextParseExceptionTest.java32 assertThat(new SpanContextParseException("my message").getMessage()).isEqualTo("my message"); in createWithMessage()
38 SpanContextParseException parseException = new SpanContextParseException("my message", cause); in createWithMessageAndCause()
DBinaryFormatTest.java63 public void fromByteArray_NullInput() throws SpanContextParseException { in fromByteArray_NullInput()
68 public void fromByteArray_NotNullInput() throws SpanContextParseException { in fromByteArray_NotNullInput()
DTextFormatTest.java57 public void fromHeaders_NullGetter() throws SpanContextParseException { in fromHeaders_NullGetter()
62 public void fromHeaders_NotNullGetter() throws SpanContextParseException { in fromHeaders_NotNullGetter()
/external/opencensus-java/contrib/http_util/src/main/java/io/opencensus/contrib/http/util/
DCloudTraceFormat.java29 import io.opencensus.trace.propagation.SpanContextParseException;
107 throws SpanContextParseException { in extract()
113 throw new SpanContextParseException("Missing or too short header: " + HEADER_NAME); in extract()
132 throw new SpanContextParseException("Invalid input", e); in extract()
/external/opencensus-java/impl_core/src/jmh/java/io/opencensus/implcore/trace/propagation/
DBinaryFormatImplBenchmark.java25 import io.opencensus.trace.propagation.SpanContextParseException;
76 public SpanContext fromBinarySpanContext(Data data) throws SpanContextParseException { in fromBinarySpanContext()
87 public SpanContext toFromBinarySpanContext(Data data) throws SpanContextParseException { in toFromBinarySpanContext()
DB3FormatImplBenchmark.java24 import io.opencensus.trace.propagation.SpanContextParseException;
83 public SpanContext extract(Data data) throws SpanContextParseException { in extract()
94 public SpanContext injectExtract(Data data) throws SpanContextParseException { in injectExtract()
DTextFormatBenchmarkBase.java20 import io.opencensus.trace.propagation.SpanContextParseException;
56 SpanContext extract(Map<String, String> carrier) throws SpanContextParseException { in extract()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DCensusModulesTest.java78 import io.opencensus.trace.propagation.SpanContextParseException;
770 .thenThrow(new SpanContextParseException("Malformed header")); in traceHeaderMalformed()