Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to extend based on OpenTracing.Contrib.NetCore? #13

Open
yang-xiaodong opened this issue Apr 11, 2018 · 6 comments
Open

How to extend based on OpenTracing.Contrib.NetCore? #13

yang-xiaodong opened this issue Apr 11, 2018 · 6 comments
Labels
enhancement New feature or request
Milestone

Comments

@yang-xiaodong
Copy link

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.

@cwe1ss
Copy link
Collaborator

cwe1ss commented Apr 11, 2018

Hi @yuleyule66. Thanks for trying this library! Let me address your questions:

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?

This library still is at a very early stage. I still want to be able to refactor the code without breaking too many people. Using internal is an easy way to ensure that. I will make more types public once I'm confident that the architecture is stable.

Could you tell me what kind of extensions you were planning to add? Maybe it is something that's useful for everyone and could be integrated directly into this library?

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.

I added more details on why I currently only target netcoreapp2.0 in #12. If you have further feedback/comments regarding that, please post them in #12 so that we can focus on one topic per issue.

@cwe1ss cwe1ss added the enhancement New feature or request label Apr 11, 2018
@cwe1ss cwe1ss added this to the Backlog milestone Apr 11, 2018
@kreciol
Copy link

kreciol commented 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?

@Alksar
Copy link

Alksar commented Aug 7, 2019

Hello, i am also interested in extension functionality. Making the internal class DiagnosticListenerObserver public will help a lot.

@zh6335901
Copy link

zh6335901 commented 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?

@gSerP1983
Copy link

Hello. And I also want to create my derived class from DiagnosticListenerObserver. Are there some news about this issue?

@sevaf
Copy link

sevaf commented Dec 31, 2019

Really great work, I'm also want to extend DiagnosticListenerObserver for AWS SDK events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants