question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to extend based on OpenTracing.Contrib.NetCore?

See original GitHub issue

Hello , Thanks for the great work.

I want to add some extensions to OpenTracing.Contrib.NetCore, but some classes like DiagnosticListenerObserver are defined as internal, why isn’t it set to be public ? Is there something I have missed?

Another question, I saw the response of issue 12. I think there is no problem to change the project to netstandard2.0. We are a new library, don’t need to think about the compatibility of .NET Framework. If set to netcoreapp2.0, it is very unfriendly for projects that need to extend OpenTracing.Contrib.NetCore.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

4reactions
kreciolcommented, Apr 20, 2019

Hi @cwe1ss,

I have similar case. I want to create DiagnosticListenerObserver for Npgsql events (NpqSql). Another option is implement in this library, but reference to Npgsql isn’t good practice. From my perspective better will be separate library (e.g. OpenTracing.Contrib.NetCore.Npqsql) with implementation for npqsql. I can implement this library, but I need to have DiagnosticListenerObserver and related classes marked as public.

What do you think about this?

2reactions
zh6335901commented, Nov 6, 2019

Hi, I also want to create DiagnosticListenerObserver for my own EventBus. If the internal class DiagnosticListenerObserver change to public will help me a lot. What’s the progress of this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to install into .netstandard 2.0 library · Issue #12
How to extend based on OpenTracing. ... This library (opentracing-contrib/csharp-netcore) uses DiagnosticListener to generate traces for ...
Read more >
Distributed Tracing for .NET with Lightstep
Lightstep diagnoses anomalies and slowdowns, spanning mobile, monoliths, and microservices: best-in-class observability, at scale, for modern applications.
Read more >
OpenTracing.Contrib.NetCore 0.9.0
Adds OpenTracing instrumentation for .NET Core apps that use the `Microsoft.Extensions.*` stack. Instrumented components: HttpClient calls, ASP.
Read more >
Migrating from OpenTracing.NET to OpenTelemetry.NET
It is possible to migrate in steps by switching your application over from OpenTelemetry to OpenTracing while still temporarily supporting ...
Read more >
opentracing and jaeger on a .netcore 2.1 application?
Our application consist of angular 6 for the UI and .netcore 2.0 for the back end, looking to implement tracing to it and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found