-
Notifications
You must be signed in to change notification settings - Fork 777
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
Integrate Testcontainers into OpenTelemetry .NET tests #4193
Comments
Thanks @HofmeisterAn ! Happy to incorporate this to replace our manual spinning up of docker for some of the tests. |
@HofmeisterAn, if you have some time, please review also auto instrumentation repository. |
OC, I will take a look at it. In case I have questions, I will reply here.
Sure, I can take a look at it afterwards. |
Since we were able to enable the MSSQL integration tests as mentioned by @cijothomas, I think we can close the issue.
@Kielek, I will take a look at the Thanks everyone, great collaboration 🙌. |
Feature Request
👋 OpenTelemetry maintainers and community! I wanted to introduce myself as one of the Testcontainers maintainers, working primarily on the .NET implementation. I know that Testcontainers has been adopted in some of the other OpenTelemetry implementations, such as Go and Java, and I believe that the .NET version could benefit from it as well.
For those who may not be familiar, Testcontainers is an open-source library that makes it easy to spin up and manage disposable Docker containers for testing. By using Testcontainers, you can run your tests in an environment that closely mimics production, without having to manually manage infrastructure or worry about the dependencies of your application. This can lead to more reliable and reproducible test results.
An example configuration for a PostgreSQL or Redis container look like:
Please note that we will be supporting pre-configured modules (e.g. PostgreSQL), including best practices in the future. This will reduce the configuration to a bare minimum, typically requiring only a single line:
I believe that integrating Testcontainers into the OpenTelemetry .NET implementation could be a great way to improve the testing experience. I am happy to help integrate Testcontainers into OpenTelemetry .NET, and I look forward to potentially collaborating with all of you.
Thanks for all the hard work you do to maintain and improve OpenTelemetry!
Is your feature request related to a problem?
-
Describe the solution you'd like:
-
Describe alternatives you've considered.
-
Additional Context
-
The text was updated successfully, but these errors were encountered: