Hi, Filippo
First of all, SkyWalking is based on auto instrument agent, so you need set 
javaagent to your application. The settings about connection can be found in 
there.


And the agent core starts up in async way, then you can't depend on it to trace 
an application just starts up and run in first 30~45 seconds. From your codes. 
look like a main function only.


SkyWalking focuses on server monitoring, it works like most commercial product.


Hope these help.



Sheng Wu
Apache SkyWalking

From Wu Sheng 's phone.

---Original---
From: "Filippo Balicchia"<[email protected]>
Date: Mon, May 14, 2018 03:50 AM
To: "dev"<[email protected]>;
Subject: Init SkywalkingTracer with transport configuration


Hi. I don't know if this is the right place.. if no sorry in advance.

I've instrumented a tiny app with OpenTracing api and I'd like to swith
system in favor of Skywalking.
In SkywalkingTracer I can't find a way to inizialized it with a sort of
sender that send data to Skywalking
collector.

```
Tracer tracer = new SkywalkingTracer();
        GlobalTracer.register(tracer);

        ActiveSpan parent =
GlobalTracer.get().buildSpan("Ciao").startActive();
        for (int i = 0; i < 5; i++)
        {
            parent.log("Start child span " + i);

            ActiveSpan child = GlobalTracer.get()
                .buildSpan("Mondo")
                .asChildOf(parent).startActive();
            try
            {
                Thread.sleep(3000);
                System.out.println("wakeup.... ");
                child.close();
            }
            catch (InterruptedException e)
            {
                //NOOP
            }
        }
        parent.close();
```
Is there an API that I missed it ?
Thanks for attention

--Filippo

Reply via email to