Home
last modified time | relevance | path

Searched refs:spanName (Results 1 – 18 of 18) sorted by relevance

/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DTracer.java307 public final SpanBuilder spanBuilder(String spanName) { in spanBuilder() argument
308 return spanBuilderWithExplicitParent(spanName, CurrentSpanUtils.getCurrentSpan()); in spanBuilder()
328 public abstract SpanBuilder spanBuilderWithExplicitParent(String spanName, @Nullable Span parent); in spanBuilderWithExplicitParent() argument
350 String spanName, @Nullable SpanContext remoteParentSpanContext); in spanBuilderWithRemoteParent() argument
356 public SpanBuilder spanBuilderWithExplicitParent(String spanName, @Nullable Span parent) { in spanBuilderWithExplicitParent() argument
357 return NoopSpanBuilder.createWithParent(spanName, parent); in spanBuilderWithExplicitParent()
362 String spanName, @Nullable SpanContext remoteParentSpanContext) { in spanBuilderWithRemoteParent() argument
363 return NoopSpanBuilder.createWithRemoteParent(spanName, remoteParentSpanContext); in spanBuilderWithRemoteParent()
DSpanBuilder.java318 static NoopSpanBuilder createWithParent(String spanName, @Nullable Span parent) { in createWithParent() argument
319 return new NoopSpanBuilder(spanName); in createWithParent()
323 String spanName, @Nullable SpanContext remoteParentSpanContext) { in createWithRemoteParent() argument
324 return new NoopSpanBuilder(spanName); in createWithRemoteParent()
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DTracezZPageHandler.java203 String spanName = queryMap.get(HEADER_SPAN_NAME); in emitHtmlBody() local
204 if (spanName != null) { in emitHtmlBody()
210 .put("SpanName", AttributeValue.stringAttributeValue(spanName)) in emitHtmlBody()
223 runningSpanStore.getRunningSpans(RunningSpanStore.Filter.create(spanName, 0))); in emitHtmlBody()
238 sampledSpanStore.getErrorSampledSpans(ErrorFilter.create(spanName, code, 0))); in emitHtmlBody()
250 spanName, in emitHtmlBody()
259 emitSpanNameAndCountPages(formatter, spanName, spans == null ? 0 : spans.size(), type); in emitHtmlBody()
270 Formatter formatter, String spanName, int returnedNum, RequestType type) { in emitSpanNameAndCountPages() argument
271 formatter.format("<p><b>Span Name: %s </b></p>%n", htmlEscaper().escape(spanName)); in emitSpanNameAndCountPages()
431 for (String spanName : spanNames) { in emitSummaryTable()
[all …]
/external/opencensus-java/contrib/spring/src/main/java/io/opencensus/contrib/spring/aop/
DCensusSpringAspect.java65 String spanName = annotation.name(); in trace() local
66 if (spanName.isEmpty()) { in trace()
67 spanName = method.getName(); in trace()
70 return Handler.proceed(call, tracer, spanName); in trace()
DCensusSpringSqlAspect.java60 String spanName = makeSpanName(call, sql); in trace() local
62 return Handler.proceed(call, tracer, spanName, sql); in trace()
DHandler.java33 ProceedingJoinPoint call, Tracer tracer, String spanName, String... annotations) in proceed() argument
35 Scope scope = tracer.spanBuilder(spanName).startScopedSpan(); in proceed()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/
DTracerImpl.java42 public SpanBuilder spanBuilderWithExplicitParent(String spanName, @Nullable Span parent) { in spanBuilderWithExplicitParent() argument
43 return SpanBuilderImpl.createWithParent(spanName, parent, spanBuilderOptions); in spanBuilderWithExplicitParent()
48 String spanName, @Nullable SpanContext remoteParentSpanContext) { in spanBuilderWithRemoteParent() argument
50 spanName, remoteParentSpanContext, spanBuilderOptions); in spanBuilderWithRemoteParent()
DSpanBuilderImpl.java160 static SpanBuilderImpl createWithParent(String spanName, @Nullable Span parent, Options options) { in createWithParent() argument
161 return new SpanBuilderImpl(spanName, null, parent, options); in createWithParent()
165 String spanName, @Nullable SpanContext remoteParentSpanContext, Options options) { in createWithRemoteParent() argument
166 return new SpanBuilderImpl(spanName, remoteParentSpanContext, null, options); in createWithRemoteParent()
/external/opencensus-java/contrib/agent/src/main/java/io/opencensus/contrib/agent/instrumentation/
DTraceStrategyImpl.java35 public Closeable startScopedSpan(String spanName) { in startScopedSpan() argument
36 checkNotNull(spanName, "spanName"); in startScopedSpan()
39 .spanBuilder(spanName) in startScopedSpan()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/export/
DInProcessSampledSpanStoreImplTest.java88 private RecordEventsSpanImpl createSampledSpan(String spanName) { in createSampledSpan() argument
91 spanName, in createSampledSpan()
101 private RecordEventsSpanImpl createNotSampledSpan(String spanName) { in createNotSampledSpan() argument
104 spanName, in createNotSampledSpan()
114 private void addSpanNameToAllLatencyBuckets(String spanName) { in addSpanNameToAllLatencyBuckets() argument
116 Span sampledSpan = createSampledSpan(spanName); in addSpanNameToAllLatencyBuckets()
117 Span notSampledSpan = createNotSampledSpan(spanName); in addSpanNameToAllLatencyBuckets()
131 private void addSpanNameToAllErrorBuckets(String spanName) { in addSpanNameToAllErrorBuckets() argument
134 Span sampledSpan = createSampledSpan(spanName); in addSpanNameToAllErrorBuckets()
135 Span notSampledSpan = createNotSampledSpan(spanName); in addSpanNameToAllErrorBuckets()
DSpanExporterImplTest.java70 StartEndHandler startEndHandler, String spanName) { in createSampledEndedSpan() argument
74 spanName, in createSampledEndedSpan()
87 StartEndHandler startEndHandler, String spanName) { in createNotSampledEndedSpan() argument
91 spanName, in createNotSampledEndedSpan()
DInProcessRunningSpanStoreImplTest.java53 private RecordEventsSpanImpl createSpan(String spanName) { in createSpan() argument
61 spanName, in createSpan()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/export/
DInProcessSampledSpanStoreImpl.java270 String spanName = span.getName(); in considerForSampling() local
271 if (span.getSampleToLocalSpanStore() && !samples.containsKey(spanName)) { in considerForSampling()
272 samples.put(spanName, new PerSpanNameSamples()); in considerForSampling()
274 PerSpanNameSamples perSpanNameSamples = samples.get(spanName); in considerForSampling()
293 for (String spanName : spanNames) { in internaltRegisterSpanNamesForCollection()
294 if (!samples.containsKey(spanName)) { in internaltRegisterSpanNamesForCollection()
295 samples.put(spanName, new PerSpanNameSamples()); in internaltRegisterSpanNamesForCollection()
/external/opencensus-java/contrib/agent/src/main/java/io/opencensus/contrib/agent/bootstrap/
DTraceTrampoline.java96 public static Closeable startScopedSpan(String spanName) { in startScopedSpan() argument
97 return traceStrategy.startScopedSpan(spanName); in startScopedSpan()
DTraceStrategy.java54 Closeable startScopedSpan(String spanName); in startScopedSpan() argument
/external/opencensus-java/api/src/main/java/io/opencensus/trace/export/
DSampledSpanStore.java363 String spanName, long latencyLowerNs, long latencyUpperNs, int maxSpansToReturn) { in create() argument
368 spanName, latencyLowerNs, latencyUpperNs, maxSpansToReturn); in create()
433 String spanName, @Nullable CanonicalCode canonicalCode, int maxSpansToReturn) { in create() argument
438 return new AutoValue_SampledSpanStore_ErrorFilter(spanName, canonicalCode, maxSpansToReturn); in create()
DRunningSpanStore.java163 public static Filter create(String spanName, int maxSpansToReturn) { in create() argument
165 return new AutoValue_RunningSpanStore_Filter(spanName, maxSpansToReturn); in create()
/external/opencensus-java/exporters/trace/stackdriver/src/main/java/io/opencensus/exporter/trace/stackdriver/
DStackdriverV2ExporterHandler.java178 SpanName spanName = in generateSpan() local
186 .setName(spanName.toString()) in generateSpan()
447 private static String toDisplayName(String spanName, @javax.annotation.Nullable Kind spanKind) { in toDisplayName() argument
448 if (spanKind == Kind.SERVER && !spanName.startsWith(SERVER_PREFIX)) { in toDisplayName()
449 return SERVER_PREFIX + spanName; in toDisplayName()
452 if (spanKind == Kind.CLIENT && !spanName.startsWith(CLIENT_PREFIX)) { in toDisplayName()
453 return CLIENT_PREFIX + spanName; in toDisplayName()
456 return spanName; in toDisplayName()