Skip to content

Commit 83cfc88

Browse files
committed
fix: remove IServiceCollection DI extensions (unnecessary with static API)
1 parent 7e5f92b commit 83cfc88

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
@@ -258,27 +258,6 @@ VsixTelemetry.Initialize(new TelemetryConfiguration
258258

259259
---
260260

261-
## Dependency Injection
262-
263-
If your extension uses dependency injection:
264-
265-
```csharp
266-
using Otel4Vsix.Extensions;
267-
268-
public void ConfigureServices(IServiceCollection services)
269-
{
270-
services.AddOtel4Vsix(config =>
271-
{
272-
config.ServiceName = "MyExtension";
273-
config.OtlpEndpoint = "http://localhost:4317";
274-
});
275-
276-
// Now ILogger<T> is available via DI
277-
}
278-
```
279-
280-
---
281-
282261
## Supported Backends
283262

284263
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)