Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 05 07:40
    mosneji commented #1126
  • Aug 04 15:03

    lzchen on lzchen-patch-3

    (compare)

  • Aug 04 15:03

    lzchen on master

    Update CODEOWNERS (#1148) (compare)

  • Aug 04 15:03
    lzchen closed #1148
  • Aug 03 22:44

    lzchen on master

    Post-release opencensus v0.11.0… (compare)

  • Aug 03 22:44
    lzchen closed #1149
  • Aug 03 22:32
    lzchen review_requested #1149
  • Aug 03 22:32
    lzchen review_requested #1149
  • Aug 03 22:32
    lzchen review_requested #1149
  • Aug 03 22:32
    lzchen review_requested #1149
  • Aug 03 22:32
    lzchen opened #1149
  • Aug 03 22:26

    lzchen on v0.11.0

    (compare)

  • Aug 03 22:05

    lzchen on v0.11.x

    Release/v0.11.x (#1147) (compare)

  • Aug 03 22:05
    lzchen closed #1147
  • Aug 03 22:02
    lzchen reopened #1147
  • Aug 03 22:02
    lzchen closed #1147
  • Aug 03 21:34
    lzchen review_requested #1148
  • Aug 03 21:34
    lzchen review_requested #1148
  • Aug 03 21:34
    lzchen review_requested #1148
  • Aug 03 21:34
    lzchen review_requested #1148
Marwan Sulaiman
@marwan-at-work
I have a fork that resets the data on every Flush, which is what im using in production right now until either the PR is resolved, or OpenTelemetry takes over: https://github.com/marwan-at-work/opencensus-go/commit/1380fae97d1e9d7e7d96593154699df45bfb1b7d#diff-2000ebb97830a1f0f1c5c4856a737f78R236
Michka Popoff
@iMichka
Thanks; looks like the same issue. I wrote down a workaround in my PR (https://github.com/census-instrumentation/opencensus-python/pull/820#issuecomment-558658769) which I am now using in production. This will do until opentelemetry is out. I'll come back to this when the first stable releases of openTelemetry are out and see what can be done within the new framework.
Mick Davies
@MickDavies
Hi, I am new to OpenCenus and am trying to work out how I can trace a jobs that initialise stream processing. I want to measure the cumulative times for the transformations of each element as it passes through the stream and relate this back to the initial job. Is there a way of doing this?
Mick Davies
@MickDavies
I just posted the above to mailing list
bsr203
@bsr203
@pjanotti mentioned above that further development of tail sampling is moved to OpenTelemetry. Even if it skews the chart, is there a way to capture all traces with a span in error. Or capture all and drop if no error (sample before exporting). I am new to open census and previously using opentracing. Thanks for your help.
Pirogov Alexey
@AlexeyPirogov
Hello. I successfully use OpenCensus with Zipkin. Considering moving metrics that I have to OpenCensus also. Is there are a way to integrate Grafana(or other metrics dashboard) with Zipkin (or other Distributing Tracing)? So, I can click on metric max value and navigate to particular TraceId in Zipkin?
I understand that metrics and tracings use different data model to save to disk. But it would amazing to have such linkage.
Ahmed ElRefaey Hamouda
@montaro
Hello Guys, is there anyway in OpenCensus to delete a stat/metric? (go-client)
Mark Grand
@mgrand
I am a nube trying to get OpenCensus Collector to run. It immediately exits after logging this message:
{"level":"warn","ts":1575637911.8632534,"caller":"collector/processors.go:279","msg":"Nothing to do: no processor was enabled. Shutting down."}
What is it trying to tell me?
The command line I am using is
./occollector_linux --config config.yaml --health-check-http-port 8008 --metrics-port 8888 --zpages-http-port 55679
The contents of config.yaml is
log-level: INFO

receivers:
  opencensus:
    port: 8080

exporters:
  wavefront:
    enable_traces: true

    # One of "proxy" or "direct_ingestion" is required
    proxy:
      Host: metrics-dev.ioq1.homedepot.com
      MetricsPort: 4001
      TracingPort: 2878
#      DistributionPort: wf_distribution_port  # number

zpages:
  port: 55679
  disabled: false
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
@hidesminimally
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.