Skip to content

Add OpenTelemetry instrumentation project and update README#102

Merged
PhenX merged 3 commits into
PhenX:mainfrom
DPschichholz:feature/openTelemetry
May 29, 2026
Merged

Add OpenTelemetry instrumentation project and update README#102
PhenX merged 3 commits into
PhenX:mainfrom
DPschichholz:feature/openTelemetry

Conversation

@DPschichholz
Copy link
Copy Markdown
Contributor

@DPschichholz DPschichholz commented May 20, 2026

This pull request introduces OpenTelemetry instrumentation support for PhenX.EntityFrameworkCore.BulkInsert, enabling distributed tracing of bulk insert operations. The update adds a new package, documentation, and integration instructions for users who want to monitor and trace bulk insert activities in their applications.

OpenTelemetry Instrumentation Integration:

  • Added a new project, PhenX.EntityFrameworkCore.BulkInsert.OpenTelemetry, which provides extension methods to register the PhenX.EntityFrameworkCore.BulkInsert activity source with OpenTelemetry's TracerProviderBuilder. [1] [2]
  • Updated the solution file (PhenX.EntityFrameworkCore.BulkInsert.slnx) to include the new instrumentation project.

Documentation Updates:

  • Added a new documentation page (docs/opentelemetry.md) with installation, configuration, and usage instructions for the OpenTelemetry instrumentation package, including details on traced operations and activity source usage.
  • Updated the documentation navigation to include a link to the new OpenTelemetry page.
  • Updated the README.md to list the new package, provide installation instructions, and describe its purpose. [1] [2]

@DPschichholz DPschichholz marked this pull request as ready for review May 20, 2026 13:05
@DPschichholz DPschichholz requested a review from PhenX as a code owner May 20, 2026 13:05
@DPschichholz DPschichholz force-pushed the feature/openTelemetry branch from 88651c1 to 8f5b791 Compare May 21, 2026 07:03
@SebastianStehle
Copy link
Copy Markdown
Collaborator

This does nothing. It does not actually trace something. You have to create an activity source and then add telemetry code.

@DPschichholz
Copy link
Copy Markdown
Contributor Author

@SebastianStehle

This does nothing. It does not actually trace something. You have to create an activity source and then add telemetry code.

The ActivitySource is already available here:
https://github.com/PhenX/PhenX.EntityFrameworkCore.BulkInsert/blob/main/src/PhenX.EntityFrameworkCore.BulkInsert/Telemetry.cs#L13
Usages are in BulkInsertProviderBase:
https://github.com/PhenX/PhenX.EntityFrameworkCore.BulkInsert/blob/main/src/PhenX.EntityFrameworkCore.BulkInsert/BulkInsertProviderBase.cs

@PhenX
Copy link
Copy Markdown
Owner

PhenX commented May 29, 2026

Oh I forgot about that 😅 good catch

@PhenX PhenX merged commit df56b11 into PhenX:main May 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants