Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 18:06
    lzchen review_requested #1136
  • 18:06
    lzchen review_requested #1136
  • 18:06
    lzchen review_requested #1136
  • 18:06
    lzchen review_requested #1136
  • 18:06
    lzchen opened #1136
  • 18:05

    lzchen on v0.10.x

    (compare)

  • 17:37

    lzchen on master

    Add kwargs to derived gauge (#1… (compare)

  • 17:37
    lzchen closed #1135
  • 16:22
    lzchen synchronize #1135
  • 16:21
    lzchen commented #1135
  • 16:15
    lzchen commented #1135
  • Jun 29 23:42
    lzchen opened #1135
  • Jun 29 23:42
    lzchen review_requested #1135
  • Jun 29 23:42
    lzchen review_requested #1135
  • Jun 29 23:42
    lzchen review_requested #1135
  • Jun 29 23:42
    lzchen review_requested #1135
  • Jun 29 16:21
    lzchen closed #1125
  • Jun 29 16:21

    lzchen on master

    Use logging handler close inste… (compare)

  • Jun 29 16:21
    lzchen closed #1134
  • Jun 29 06:43
    Ceglowa commented #900
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
Mark Petronic
@mpetronic
Just getting started with opencensus. Concept question. say I want to record number of times my cache is hit for sets, gets, deletes. Do I create just ONE measure to record the counts and use three different keys like the psuedo code below?
private static final MeasureLong M_CACHE_ACCESSES = MeasureLong.create("cache_accesses", "The number times the cache was accessed", "1");

    private static void recordTaggedStat(TagKey key, String value, MeasureLong m, long value) {
        TagContext tctx = tagger.emptyBuilder().put(key, TagValue.create(value)).build();
        try (Scope ss = tagger.withTagContext(tctx)) {
            statsRecorder.newMeasureMap().put(m, value).record();
        }
    }

Calls to record metrics for the three access types:

recordTaggedStat(TAGKEY_CACHE_MODE, "GET", M_CACHE_ACCESSES, long_value);
recordTaggedStat(TAGKEY_CACHE_MODE, "SET", M_CACHE_ACCESSES, long_value);
recordTaggedStat(TAGKEY_CACHE_MODE, "DEL", M_CACHE_ACCESSES, long_value);
fredbi
@fredbi
@mpetronic most likely you want a single "cache hit" measure with a tag to distinguish the operation
Mark Petronic
@mpetronic
Thanks @fredbi . I did get it working that way and it makes sense now.
Tim Schwenke
@trallnag
Can someone please point me to a source repository that uses opencensus metrics (not necessarily tracing) with Python or JS? I want to introduce OpenCensus/OpenTelemetry in my team and would like to see some inspiration
bu3alwa
@bu3alwa

I'm getting a bad decrypt when I try to set the env variable using /tests/system/set_credentials.sh

*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
bad decrypt
140663209464256:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:537:

Doest anyone know why this happens when running the test?

Jerry
@JerryYuanJ
Hi, did anyone have experience in web integration? I've deployed a server and want to send some tracks to this server from my web app, but it always returns me 405 HTTP code? Is there any configuration I'v missed?
Yaroslav Skopets
@yskopets
Hi guys!
I have a question about C++ version of OpenCensus.
In particular, about integration of OpenCensus into Envoy.
At the moment, Envoy configures OpenCensus as a singleton per entire process.
Is it a choice of Envoy to use OpenCensus this way ?
Or may be it's OpenCensus who doesn't allow to have multiple tracing configurations per process ?
Yaroslav Skopets
@yskopets
Thanks in advance!
Yaroslav Skopets
@yskopets
To give you more context why about my question.
Envoy supports multiple alternative tracing providers, e.g. Zipkin, OpenTracing, OpenCensus, Lightstep, Datadog, etc
So, it's absolutely natural for Envoy to have multiple tracing configurations and switch between them if a user wants that.
Yaroslav Skopets
@yskopets
If it was possible to have multiple OpenCensus configurations in parallel, it would enable a use case where a user can set up different exporters for different subsets of traffic passing through Envoy
yiyijin
@yiyijin
Hi Experts, anyone has encountered this issue when using oc-agent? census-instrumentation/opencensus-service#640 Thanks!
Vinh Vu
@Vinh-Vu-ck
hey all, im having trouble running the example found here: https://pypi.org/project/opencensus-ext-requests/ (but exporting to stackdriver). ive installed requests and the extension, but i’m not getting any requests info (http method, status code, etc.) in Google's Cloud Trace. the span does appear though. has anyone else run into this issue? any extra configuration needed to be added?
im running on these versions
'opencensus>=0.7.7',
'opencensus-ext-requests>=0.7.3',
'opencensus-ext-stackdriver>=0.7.2',
'requests==2.22.0’,
code in question:
def initialize_tracer():
    exporter = StackdriverExporter(project_id=‘<PROJECT_ID>’, transport=AsyncTransport)
    return Tracer(exporter=exporter, sampler=AlwaysOnSampler())

tracer = initialize_tracer()
config_integration.trace_integrations(['requests'], tracer=tracer)
with tracer.span(name=’span_name'):
    response = requests.get(url='https://www.wikipedia.org/wiki/Rabbit’)

# Span appears but without any requests information
Vinh Vu
@Vinh-Vu-ck
looks like with older versions it works:
'opencensus==0.4.1',
'opencensus-ext-requests==0.1.1',
'opencensus-ext-stackdriver==0.2.1',
'requests==2.21.0’,
Vinh Vu
@Vinh-Vu-ck
this is the highest version numbers i can go with it working:
'opencensus==0.7.1',
'opencensus-ext-requests==0.1.2',
'opencensus-ext-stackdriver==0.7.1’,
Paul Selden
@pselden
are there any examples of using stackdriver trace with the python logging module? ideally i just want it so my logs show up with my traces
RNDr. Simon Toth
@HappyCerberus

I'm trying to setup OpenCensus for our project, but I'm running into issues with Bazel. external/io_opencensus_cpp/opencensus/exporters/trace/stackdriver/BUILD:24:1: error loading package '@com_google_googleapis//google/devtools/cloudtrace/v2': Unable to find package for @com_google_googleapis_imports//:imports.bzl: The repository '@com_google_googleapis_imports' could not be resolved. and referenced by '@io_opencensus_cpp//opencensus/exporters/trace/stackdriver:stackdriver_exporter'

Can anyone help?