Skip to content

Commit bf7dc4e

Browse files
committed
fix: remove IServiceCollection DI extensions (unnecessary with static API)
1 parent 35390c5 commit bf7dc4e

File tree

3 files changed

+0
-137
lines changed

3 files changed

+0
-137
lines changed

CLAUDE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ The library follows a static facade pattern for ease of use:
6969
- **Metrics/MetricsProvider.cs** - Manages `Meter` for counters, histograms, gauges
7070
- **Logging/LoggerProvider.cs** - Wraps `ILoggerFactory` for OpenTelemetry-integrated logging
7171
- **Exceptions/ExceptionTracker.cs** - Captures exceptions manually and via global handlers
72-
- **Extensions/ServiceCollectionExtensions.cs** - DI integration via `AddOtel4Vsix()`
7372

7473
## Key Implementation Details
7574

README.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -276,27 +276,6 @@ VsixTelemetry.Initialize(config);
276276

277277
---
278278

279-
## Dependency Injection
280-
281-
If your extension uses dependency injection:
282-
283-
```csharp
284-
using Otel4Vsix.Extensions;
285-
286-
public void ConfigureServices(IServiceCollection services)
287-
{
288-
services.AddOtel4Vsix(config =>
289-
{
290-
config.ServiceName = "MyExtension";
291-
config.OtlpEndpoint = "http://localhost:4317";
292-
});
293-
294-
// Now ILogger<T> is available via DI
295-
}
296-
```
297-
298-
---
299-
300279
## Supported Backends
301280

302281
Otel4Vsix exports telemetry via OTLP, which is supported by:

src/CodingWithCalvin.Otel4Vsix/Extensions/ServiceCollectionExtensions.cs

Lines changed: 0 additions & 115 deletions
This file was deleted.

0 commit comments

Comments
 (0)