{"push_id":1316388976,"size":1,"distinct_size":1,"ref":"refs/heads/okhttp-tags","head":"49646df4171837abe42336cbbad4ffb2c3964b8c","before":"9a7ef9dd516b94ed74999f81b2fbdf8fbf76145c","commits":[{"sha":"49646df4171837abe42336cbbad4ffb2c3964b8c","author":{"name":"Adrian Cole","email":"a5aaecb6ea219343eb269080b22ef0b90e34dfd9@pivotal.io"},"message":"Rewrites OkHttp interceptor as BraveTracingInterceptor\n\nThis rewrites the okhttp brave interceptor as `BraveTracingInterceptor`\n\nThis is primarily done to allow us to change the internals. Right now,\nit is hard to maintain the code since it exposes a public constructor.\nFor example, we can't access the client tracer. Moreover, it is more\nburdensome to construct this way.\n\nThe first new feature is allowing users to control the span name via\nhttp request tags.\n\nSpan names correspond to the `SpanNameProvider` supplied to the\ninterceptor. If you are using OkHttp request tags, you can use these for\nyour span name via `BraveTracingInterceptor.Builder.preferTagAsSpanName(true)`\n\nIn the below example, the span name will be \"get-gummy-bears\":\n```java\nclient = new OkHttpClient.Builder()\n    .addInterceptor(BraveTracingInterceptor.builder()\n      .clientTracer(clientTracer)\n      .preferTagAsSpanName(true).build())\n    .build();\n\nrequest = new Request.Builder()\n    .url(\"https://myhost.com/gummybears\")\n    .tag(\"get-gummy-bears\").build();\n```","distinct":true,"url":"https://api.github.com/repos/openzipkin/brave/commits/49646df4171837abe42336cbbad4ffb2c3964b8c"}]}
{"actor":{"display_login":"adriancole"}}