Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 14:11
    victoraugustolls edited #863
  • 14:11
    victoraugustolls edited #863
  • 14:11
    victoraugustolls edited #863
  • 14:11
    victoraugustolls opened #863
  • 09:35
    oadam commented #254
  • 09:31
    googlebot commented #254
  • 09:31
    oadam commented #254
  • 09:29
    googlebot commented #254
  • 09:29
    oadam opened #254
  • 00:41
    leosunmo commented #1199
  • Feb 27 20:44
    LubergAlexander commented #856
  • Feb 27 20:42
    LubergAlexander synchronize #856
  • Feb 27 20:30
    LubergAlexander commented #856
  • Feb 27 19:36
    googlebot commented #856
  • Feb 27 19:36
    googlebot commented #856
  • Feb 27 19:36
    LubergAlexander synchronize #856
  • Feb 27 19:36
    LubergAlexander commented #856
  • Feb 27 19:22
    lzchen commented #861
  • Feb 26 23:13
    lzchen commented #862
  • Feb 25 20:55
    farmdawgnation commented #253
Jonathan Giles
@JonathanGiles
Hi folks. Curious if there were any plans to have a module name included in the released jar files for OpenCensus?
Zhan Su
@z-oo
Hi, I wonder whether OpenCensus have plan to make tracing library automatically exporting latency/qps/etc metrics? When we add a new span, we almost always also care about the latency distribution. We can get the distribution from the trace storage backend but it is biased because sampling decision is made in upstream services. We now have to write a wrapper that creates both tracer and also a scoped timer to measure time and report to stats library. Then we are paying 2x cost of measuring the same time span twice and also a little bit extra coding work is needed. I personally care about C++ Python and golang.
Joseph Hajduk
@josephhajduk
anyone have any luck using opencensus-java or scala inside managed cloud run? I am getting DEADLINE_EXCEEDED grpc errors when the exporter does onBatchExport with the simplest example.
Leighton Chen
@lzchen
Hi, how do I join the census-instrumentation org? https://github.com/orgs/census-instrumentation/people
Tristan Lohman
@gatorcse
I'm trying to get started with opencensus and Istio, although I'm pretty new to Istio. I would like to use the OpenCensus agent as we wish to forward to multiple services. There is a ton of documentation on getting envoy to send its generated spans on to other services. We are also generating spans inside our application to trace key operations. What is the recommended deployment scenario here? Do we deploy the agent inside the pod next to the envoy sidecar, or as a DaemonSet? If so, how do we configure our application to point at that collector, and how do tell envoy to allow us to talk to it (my impression being that the standard envoy deployment intercepts ALL traffic from your application, including traffic meant for the agent, is this true?).
sergii-bardas
@sergii-bardas
Hi, I have plugged Opencensus lib to our Node.js application in order to report to Zipkin
performed call to our service_1 that is exposed outside
service_1 called other external service_2
as result got 1 Trace with 2 Spans in Zipkin UI
but Spans hold the same name despite there were 2 calls of different services
Is there chance to tune remote service naming?
maerics
@maerics
does the oc-collector currently export metrics? based on processors.go:255 it appears not... ?
Bogdan Drutu
@bogdandrutu
it supports everything that oc-collector supported
maerics
@maerics
thanks for the pointer @bogdandrutu - out of curiosity, what's the difference between the open-telemetry and open-census projects?
Bogdan Drutu
@bogdandrutu
open-telemetry is a continuation of the opencensus + opentracing projects. see https://medium.com/opentracing/a-roadmap-to-convergence-b074e5815289
Tamas Szoke
@tamasszoke
Maximiliano Felice
@MaximilianoFelice
Hi guys, how are you? I'm trying to extend the Aggregation interface of Opencensus in Java to support Max/Min value reporting, is there any recommended way to do this?
Yuri Grinshteyn
@yuriatgoogle
Hi, folks - i'm trying to use OpenTelemetry for tracing in Go. In OpenCensus, I was able to do this:
```// create root span
ctx, rootspan := trace.StartSpan(context.Background(), "incoming call")
defer rootspan.End()
// create child span for backend call
ctx, childspan := trace.StartSpan(ctx, "call to backend")
defer childspan.End()```
To explicitly create child spans
But in OT, I can't figure out how to do that. From the sample, I have this:
``` err := tr.WithSpan(ctx, "incoming call", // root span here
func(ctx context.Context) error {
// create backend request
req, _ := http.NewRequest("GET", backendAddr, nil)
        // inject context
        ctx, req = httptrace.W3C(ctx, req)
        httptrace.Inject(ctx, req) ```
Any suggestions?
Yuri Grinshteyn
@yuriatgoogle
My question was answered in #opentelemetry-go
shimmy
@lilshim
Hi everyone! I've got a question about an metric I'd like to implement in my project. I'm using lastValue aggregation which works great, except for the part that it "persists" the last value recorded perpetually. Are there other aggregations that fit the bill for this? I just want something exactly like lastValue but "resets" the metrics when nothing is sent
badisbenhamida
@badisbenhamida
hi. apologies if this question was asked already. i am having troubles getting opencensus to increment a counter in stackdriver monitoring. Here is a snippet of the code:
public void record(MetricsType metrics, String appId, Map<MetricsTagKey, String> tags) {

        Assert.notNull(metrics, "You have to pick a metrics type");
        Assert.notEmpty(tags, "Tags can't be null");

        logger.info("== > Recording metrics '{}' for app ID '{}' with tag values {} ", metrics.toString(), appId, tags.toString());

        TagContextBuilder tcb = tagger.emptyBuilder();

        // add appId
        tcb.putLocal(TagKey.create(MetricsTagKey.APP_ID.key), TagValue.create(appId));

        // add all other tags
        tags.forEach((k, v) -> {
            tcb.putLocal(TagKey.create(k.key), TagValue.create(v));
        });

        TagContext ctx = tcb.build();

        if (metrics.equals(MetricsType.EMAILS_SENT_COUNT)) {
            try (Scope sc = tagger.withTagContext(ctx)) {
                STATS_RECORDER.newMeasureMap().put(emailsSentCount, 1L).record();
            }
        } else {
            // log metrics not supported
        }
    }
this is how the measure is initialized:
        emailsSentCount = MeasureLong.create(monitoringConfig.getProperty(EMAILS_SENT_NAME), 
                                                monitoringConfig.getProperty(EMAILS_SENT_DESCRIPTION), 
                                                "1"); 
        List<TagKey> emailsSentKeys = new ArrayList<>();
        for (MetricsTagKey v: MetricsTagKey.values()) {
            emailsSentKeys.add(TagKey.create(v.key));
        }

        View emailsSentCountView = View.create(Name.create(monitoringConfig.getProperty(EMAILS_SENT_NAME)),
                                                           monitoringConfig.getProperty(EMAILS_SENT_DESCRIPTION), 
                                               emailsSentCount,
                                               Count.create(),
                                               emailsSentKeys);
badisbenhamida
@badisbenhamida
regardless of how many times I call this function, the stats metrics is stuck at 1 in Stackdriver. what am I doing wrong?
Abhishek Gupta
@abhi19gupta
@bogdandrutu As mentioned above by @maerics, the opencensus collector does not seem to be able to export metrics (prometheus in my case). You suggested using opentelemetry collector. I have the following questions:
  1. The oc documentation doesn’t mention that the collector doesn’t export metrics. Can you confirm if that’s the case or are we just wrong in our configs?
  1. I don’t see a opentelemetry agent corresponding to an oc agent. Would the oc agent be compatible with opentelemetry collector?
Jay Carlton
@jaycarlton
Hi. I've tried a couple of times to use the Stackdriver API to set up a metric with a Display Name and then write to it with OpenCensus. It appears that when I then register a View in OpenCensus for that metric (matched by metric name) that the Display Name property on the Stackdriver metric is overwritten to match the metric name. Is this a known limitation?
jwlongnc
@jwlongnc
Hello! I'm a student at NC State University, and have a team of students who are planning to add an exporter to the node project for a Azure Monitor backend - we were wondering if it makes more sense to do this in OpenCensus or OpenTelemetry?
Mayur Kale
@mayurkale22
@jwlongnc I would suggest to implement it in the OpenTelemetry project.
djemalmohamed
@djemalmohamed
Hello, I need to propagate HTTP headers (zipkin) from inbound to outbound HTTP requests. I'm using nestjs which use axios as http module. Did the opencensus/propagation-b3 tracer does it? thanks in advance.
Austin Schoen
@AustinSchoen
Hi all, I'm trying to implement the OpenCensus Agent based on the documentation here: https://opencensus.io/service/components/agent/, but I'm a little confused. Is the collector component required to export? Or can the agent both receive and export trace data?
Paulo Janotti
@pjanotti
@AustinSchoen the OC Agent is able to export trace data directly. That said I would recommend you to use the OpenTelemetry collector at this stage - the OTel one doesn't have a separate agent, it is a single bin which you configure according to your needs.
Mayur Kale
@mayurkale22

Hello, I need to propagate HTTP headers (zipkin) from inbound to outbound HTTP requests. I'm using nestjs which use axios as http module. Did the opencensus/propagation-b3 tracer does it? thanks in advance.

Yes, it should work for you. here is link for sample code : https://github.com/census-instrumentation/opencensus-node/tree/master/packages/opencensus-propagation-b3#usage

Aamir2786
@Aamir2786
hello there!!!! To what databases can i export opencensus agent trace data using opencensus exporter itself? In which format the trace data is collected? From when it will be safe to implement opentelemetry api?
Thanks in advance!!!!!
Aamir2786
@Aamir2786
2020/02/07 16:21:41 Cannot read the YAML file config.yaml error: open config.yaml: no such file or directory
Hii there i am building opencensus agent from binary
btw i ran the following command: ./bin/ocagent_$(go env GOOS).........can someone tell why this error came?
Do i need to create yaml file myself and if yes does it need to be separate for agent and collector?
Paulo Janotti
@pjanotti
Hi @Aamir2786 - you need a config file to run agent and collector. Depending on what you trying to do I recommend you trying the OpenTelemetry Collector instead.
agent/collector (and opentelemetry collector) accept a variety of input and output formats (Jaeger, Zipkin, Prometheus, OpenCensus, etc). Do you have any specific formats in mind?
Aamir2786
@Aamir2786
thanks @pjanotti for the reply. I want to use OpenCensus as input as well as output format. Can you suggest me any tutorial who has has done tracing/metrics using OpenCensus. Thanks for the suggestion i will try OpenTelemetry.
Aamir2786
@Aamir2786
{"level":"info","ts":1581259762.9968371,"caller":"collector/collector.go:167","msg":"Starting...","NumCPU":8}
{"level":"info","ts":1581259762.997372,"caller":"healthcheck/handler.go:99","msg":"Health Check server started","http-port":13133,"status":"unavailable"}
{"level":"warn","ts":1581259762.9974558,"caller":"collector/processors.go:279","msg":"Nothing to do: no processor was enabled. Shutting down."}
i got above error when running command: ./bin/occollector_$(go env GOOS)
I wanted to start the collector, any idea why this happened. So, my opencensus agent is running fine. So i wanted to start collector with opencensus exporter as backend.
Aamir2786
@Aamir2786
Sorry for disturbing, please can anyone tell me if we can store our trace/metrics data to storage like mySql and dynamoDB. And what is the opencensus exporter , will it help me in storing traces/metrics data in aforesaid storage?
Paulo Janotti
@pjanotti
@Aamir2786 I'm not aware of anything writing OpenCensus as a output/backend format. Typically it is used a transport format and the actual backend something like zipkin, jaeger, etc. The error message indicates that the configuration file is incorrect. Take a look under examples/demo for some configuration files (once more I recommend you to start with OpenTelemetry instead). The OpenCensus exporter allows the agent to send data to collectors without the cost of format translations. If you want to run an example with back end and everything else take a look at https://github.com/open-telemetry/opentelemetry-collector/tree/master/examples/demo
Thomas Noe
@t3h2mas
Does anyone know how to start a child span when using auto-instrumented nodejs express?
fredbi
@fredbi
@mwuertinger I am interested just as well by the influxdb exporter (golang). I've actually forked and slightly modified yours to be more general regarding the use of views, and the mapping of many metrics into a single time series. I'd be glad to share this, and possibly contribute this back to the official contrib repo. I just don't know what is the incubating process for such new export target