Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Accepts zipkin2 json span format #37

Merged
merged 1 commit into from
Aug 13, 2017
Merged

Accepts zipkin2 json span format #37

merged 1 commit into from
Aug 13, 2017

Conversation

codefromthecrypt
Copy link

This uses the recently released detecting decoder to support the new
Span2 format defined in openzipkin/zipkin#1499

This uses the recently released detecting decoder to support the new
Span2 format defined in openzipkin/zipkin#1499
@codefromthecrypt
Copy link
Author

verified with an ad-hoc client:

  @Test
  public void test() throws Exception {
    EventData sendEvent = new EventData(("[{\n"
        + "  \"traceId\": \"86154a4ba6e91388\",\n"
        + "  \"id\": \"86154a4ba6e91387\",\n"
        + "  \"kind\": \"SERVER\",\n"
        + "  \"name\": \"get\",\n"
        + "  \"timestamp\": 1502678423123456,\n"
        + "  \"duration\": 207000,\n"
        + "  \"localEndpoint\": {\n"
        + "    \"serviceName\": \"testservice\",\n"
        + "    \"ipv4\": \"113.210.108.10\"\n"
        + "  },\n"
        + "  \"tags\": {\n"
        + "    \"http.path\": \"/api/blah\"\n"
        + "  }\n"
        + "}]").getBytes(Util.UTF_8));

    String connectString = new ConnectionStringBuilder(
        "zipkin",
        "zipkin",
        "RootManageSharedAccessKey",
        "Aint Tellin"
    ).toString();
    EventHubClient.createFromConnectionStringSync(connectString).sendSync(sendEvent);
  }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant