You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@skywalking.apache.org by GitBox <gi...@apache.org> on 2018/01/12 07:01:25 UTC

[GitHub] lijialing888 opened a new issue #746: How to read span tag in elasticsearch?

lijialing888 opened a new issue #746: How to read span tag in elasticsearch?
URL: https://github.com/apache/incubator-skywalking/issues/746
 
 
   Please answer these questions before submitting your issue.
   
   ### What version of sky-walking are you using?
   3.2.6
   
   ### What version of your OS?
   any
   
   ### What version of your JRE?
   8.0
   
   ### What company or project?
   Top 500 company
   
   ### What did you do?
   Hi, I use open-tracing API add some tag to my span:
   ```java
   Tracer tracer = new SkywalkingTracer();
   try (ActiveSpan span = tracer.buildSpan("service").startActive()) {
       span.setTag("tenant", "T3");
       span.setTag("id", input);
       // Do things.
       Thread.sleep(Math.round(50 * Math.random()));
   } 
   catch (Exception e) {
       // ignore
   }
   ```
   
   I found something like base64 code in sgement index, looks like:
   ```json
   {
       "data_binary": "CgwKCgE0gK2Bgq6s9hoaWggBGPn/oL+OLCCUgKG/jiwyCUplZGlzL2dldEIOMTI3LjAuMC4xOjYzNzlIAVABWAdyEAoHZGIudHlwZRIFUmVkaXNyFQoMZGIuc3RhdGVtZW50EgVnZXQgNxpeCAIYrYChv44sIMWAob+OLCj///////////8BOAJIAVABWAdyEAoHZGIudHlwZRIFUmVkaXNyJwoMZGIuc3RhdGVtZW50EhdzZXQgNzAuNjAxOTc3NzI5MzUxMzQ5MxplEP///////////wEY7/+gv44sIMmAob+OLCgCUANYDnIwCgN1cmwSKWh0dHA6Ly9sb2NhbGhvc3Q6MTgwODAvYmVuY2htYXJrLTEvdXNlci83chIKC2h0dHAubWV0aG9kEgNHRVQg////////////ASgB",
       "time_bucket": 201801120907
     }
   ```
   
   I want do some analyze on the spans. How could I read it? Is there any API can do it?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services