Hi,

I am not really sure, if that is the right place to ask about this, so please 
be gentle 😉

I am the author of morphium (https://github.com/sboesebeck/morphium) and I want 
to create a plugin for apache skywalking java agent to read stats from it. 
Unfortunately I am a bit lost.  I got the basic Plugin running, I get all local 
traces with no problem. But I cannot manage to get a single metric over. I 
tried creating a Gauge with just one single value, but I never find it in the 
gui.

What am I missing? There are no errors in the logs, the local traces work and 
that is all fine. Here is some code snipplet I used:

```
                stats = ((Map<String, Double>) m.invoke(applicationsMorphium));
                info("got stats");
                Gauge g = MeterFactory.gauge("morphium_reads", () -> {
                    info("Updating gauge: " + stats.get("READS"));
                    return stats.get("READS");
                }).build(); // for (var e:stats.entrySet()){
```

I do get the output "Updating gauge:" - but I cannot see the value in 
skywalking gui.

Also: When I try to create an exitSpan, it is just not shown at all in the gui, 
even if there is a local span and within that there is a nested span - all of 
it is not shown.

So, my guess is I am missing big time here, but I am trying now for quite a 
couple of days and cannot get any further. Maybe you have an Idea where I might 
need to look or you see, what I am doing wrong.

Thanks

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to