Code Monkey home page Code Monkey logo

applicationinsights-localforwarder's Issues

Sampling configuration

Is there a way to configure sampling as shown on [https://docs.microsoft.com/en-us/azure/application-insights/app-insights-sampling](this page) ?
My main requirement is to make sure all Exception telemetry is sent to AI.
Being able to tweak some adaptive sampling parameters would be nice.

Moreover, the FAQ on the same linked page suggests to use adaptive sampling to define a good value on fixed-rate sampling. This is what I would like to do since I have multiple services and I'd like to have the same fixed-rate sampling on each one (so that end-to-end transaction in azure always show the full operation across all services).
But local-forwarder configuration don't seem to allow fixed-rate sampling. Am I wrong ?

My services use Java SDK. Can I use fixed-rate sampling on the Java side, and disable (adaptive) sampling on the local-forwarder side to achieve fixed-rate sampling ?

Thanks in advance for any feedback :)

Azure App Service (Linux)

If I have an application that is running on app service, do I have any options for sending opencensus telemetry to appinsights? Is a forwarder available in that environment or can I send opencensus data directly to appinsights?

OpenCensusTelemetryConverter.cs -> Null pointer can occure at line 337 on annotation.Description.value

Hi,
we try to use the localforwarder for our traces, with the following flow:

  • Opentracing (Jaeger) -> OpenCensus Receiver (Jeager) -> Opencensus Exporter -> Azure Localforwarder -> App Insights

All works fine, I can see my traces in App Insights... but the dpendency call status is false?

In addition the localforwarder logg this error:


2019/07/22 08:40:34.534|ERROR|Could not track an incoming OpenCensus telemetry item. System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.LocalForwarder.Library.OpenCensusTelemetryConverter.TrackTraceFromTimeEvent(TelemetryClient telemetryClient, TimeEvent evnt, Span span, Node peerInfo, String ikey)
at Microsoft.LocalForwarder.Library.OpenCensusTelemetryConverter.TrackSpan(TelemetryClient telemetryClient, Span span, Node peerInfo, String ikey)
at Microsoft.LocalForwarder.Library.Library.OnOcBatchReceived(ExportTraceServiceRequest batch, ServerCallContext callContext)
2019/07/22 08:40:34.534|ERROR|Could not track an incoming OpenCensus telemetry item. System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.LocalForwarder.Library.OpenCensusTelemetryConverter.TrackTraceFromTimeEvent(TelemetryClient telemetryClient, TimeEvent evnt, Span span, Node peerInfo, String ikey)
at Microsoft.LocalForwarder.Library.OpenCensusTelemetryConverter.TrackSpan(TelemetryClient telemetryClient, Span span, Node peerInfo, String ikey)
at Microsoft.LocalForwarder.Library.Library.OnOcBatchReceived(ExportTraceServiceRequest batch, ServerCallContext callContext)
2019/07/22 08:40:34.534|ERROR|Could not track an incoming OpenCensus telemetry item. System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.LocalForwarder.Library.OpenCensusTelemetryConverter.TrackTraceFromTimeEvent(TelemetryClient telemetryClient, TimeEvent evnt, Span span, Node peerInfo, String ikey)


Can you help me, to understand whats going on?

Thank you
YR

Local Forwarder does not work correctly with Span requests

It never writes a response, therefore attempt to stream Spans without closing connection after each span does not work.

LocalForwarder should write to response stream after each span received similarly to how it does it for config requests.

examples/opencensus/python-app not work by google.protobuf.internal.well_known_types.ParseError

$ cd examples/opencensus
$ docker-compose up 
...
python-app_1       | Performing system checks...
python-app_1       |
python-app_1       | Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x7f4d2bf08268>
python-app_1       | Traceback (most recent call last):
python-app_1       |   File "/usr/local/lib/python3.6/site-packages/django/utils/autoreload.py", line 228, in wrapper
python-app_1       |     fn(*args, **kwargs)
python-app_1       |   File "/usr/local/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 125, in inner_run
python-app_1       |     self.check(display_num_errors=True)
python-app_1       |   File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 359, in check
python-app_1       |     include_deployment_checks=include_deployment_checks,
python-app_1       |   File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 346, in _run_checks
python-app_1       |     return checks.run_checks(**kwargs)
python-app_1       |   File "/usr/local/lib/python3.6/site-packages/django/core/checks/registry.py", line 81, in run_checks
python-app_1       |     new_errors = check(app_configs=app_configs)
python-app_1       |   File "/usr/local/lib/python3.6/site-packages/django/core/checks/urls.py", line 16, in check_url_config
python-app_1       |     return check_resolver(resolver)
python-app_1       |   File "/usr/local/lib/python3.6/site-packages/django/core/checks/urls.py", line 26, in check_resolver
python-app_1       |     return check_method()
python-app_1       |   File "/usr/local/lib/python3.6/site-packages/django/urls/resolvers.py", line 254, in check
python-app_1       |     for pattern in self.url_patterns:
python-app_1       |   File "/usr/local/lib/python3.6/site-packages/django/utils/functional.py", line 35, in __get__
python-app_1       |     res = instance.__dict__[self.name] = self.func(instance)
python-app_1       |   File "/usr/local/lib/python3.6/site-packages/django/urls/resolvers.py", line 405, in url_patterns
python-app_1       |     patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
python-app_1       |   File "/usr/local/lib/python3.6/site-packages/django/utils/functional.py", line 35, in __get__
python-app_1       |     res = instance.__dict__[self.name] = self.func(instance)
python-app_1       |   File "/usr/local/lib/python3.6/site-packages/django/urls/resolvers.py", line 398, in urlconf_module
python-app_1       |     return import_module(self.urlconf_name)
python-app_1       |   File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
python-app_1       |     return _bootstrap._gcd_import(name[level:], package, level)
python-app_1       |   File "<frozen importlib._bootstrap>", line 994, in _gcd_import
python-app_1       |   File "<frozen importlib._bootstrap>", line 971, in _find_and_load
python-app_1       |   File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
python-app_1       |   File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
python-app_1       |   File "<frozen importlib._bootstrap_external>", line 678, in exec_module
python-app_1       |   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
python-app_1       |   File "/code/app/urls.py", line 19, in <module>
python-app_1       |     import app.views
python-app_1       |   File "/code/app/views.py", line 5, in <module>
python-app_1       |     from opencensus.trace.exporters.ocagent import trace_exporter
python-app_1       |   File "/usr/local/lib/python3.6/site-packages/opencensus/trace/exporters/ocagent/trace_exporter.py", line 30, in <module>
python-app_1       |     from opencensus.trace.exporters.ocagent import utils
python-app_1       |   File "/usr/local/lib/python3.6/site-packages/opencensus/trace/exporters/ocagent/utils.py", line 17, in <module>
python-app_1       |     from google.protobuf.internal.well_known_types import ParseError
pip freeze|grep proto
googleapis-common-protos==1.6.0
protobuf==3.9.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.