congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SpanMutator
Code IndexAdd Tabnine to your IDE (free)

How to use
SpanMutator
in
com.nike.wingtips

Best Java code snippets using com.nike.wingtips.SpanMutator (Showing top 9 results out of 315)

origin: Nike-Inc/riposte

@Override
public void doChangeSpanName(@NotNull Span span, @NotNull String newName) {
  SpanMutator.changeSpanName(span, newName);
}
origin: Nike-Inc/riposte

@Override
protected void doChangeSpanName(@NotNull Span span, @NotNull String newName) {
  SpanMutator.changeSpanName(span, newName);
}
origin: com.nike.riposte/riposte-core

@Override
protected void doChangeSpanName(@NotNull Span span, @NotNull String newName) {
  SpanMutator.changeSpanName(span, newName);
}
origin: com.nike.riposte/riposte-core

@Override
public void doChangeSpanName(@NotNull Span span, @NotNull String newName) {
  SpanMutator.changeSpanName(span, newName);
}
origin: Nike-Inc/riposte

@Override
public void doChangeSpanName(@NotNull Span span, @NotNull String newName) {
  SpanMutator.changeSpanName(span, newName);
}
origin: Nike-Inc/wingtips

SpanMutator.changeSpanName(span, finalSpanName);
origin: Nike-Inc/wingtips

  @Test
  public void changeSpanName_does_nothing_if_passed_null_newName() {
    // given
    Span spanMock = mock(Span.class);

    // when
    SpanMutator.changeSpanName(spanMock, null);

    // then
    verifyZeroInteractions(spanMock);
  }
}
origin: Nike-Inc/wingtips

@Test
public void changeSpanName_does_nothing_if_passed_null_span() {
  // expect - no exception thrown when passed null span.
  SpanMutator.changeSpanName(null, "foo");
}
origin: Nike-Inc/wingtips

@Test
public void changeSpanName_works_as_expected() {
  // given
  Span span = Span.newBuilder("origSpanName", Span.SpanPurpose.SERVER).build();
  String newSpanName = UUID.randomUUID().toString();
  assertThat(span.getSpanName()).isNotEqualTo(newSpanName);
  // when
  SpanMutator.changeSpanName(span, newSpanName);
  // then
  assertThat(span.getSpanName()).isEqualTo(newSpanName);
}
com.nike.wingtipsSpanMutator

Javadoc

A helper class that has methods that can mutate some fields in Spans that are otherwise immutable.

Most used methods

  • changeSpanName

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now