Skip to content

Commit

Permalink
Add legacy dotnet support (#2323)
Browse files Browse the repository at this point in the history
Co-authored-by: Amir Blum <[email protected]>
  • Loading branch information
edeNFed and blumamir authored Jan 28, 2025
1 parent 6ead328 commit 72d925b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
3 changes: 2 additions & 1 deletion profiles/aggregators/greatwall.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ var GreatwallProfile = profile.Profile{
ProfileName: common.ProfileName("greatwall"),
MinimumTier: common.OnPremOdigosTier,
ShortDescription: "Bundle profile that includes " +
"java-ebpf-instrumentations",
"java-ebpf-instrumentations and legacy-dotnet-instrumentation",
Dependencies: []common.ProfileName{
"java-ebpf-instrumentations",
"legacy-dotnet-instrumentation",
},
}
1 change: 1 addition & 0 deletions profiles/allprofiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var AllProfiles = []profile.Profile{
instrumentation.AllowConcurrentAgents,
instrumentation.JavaEbpfInstrumentationsProfile,
instrumentation.JavaNativeInstrumentationsProfile,
instrumentation.LegacyDotNetProfile,

pipeline.DisableNameProcessorProfile,
pipeline.SmallBatchesProfile,
Expand Down
12 changes: 12 additions & 0 deletions profiles/instrumentation/dotnet_distro.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package instrumentation

import (
"github.com/odigos-io/odigos/common"
"github.com/odigos-io/odigos/profiles/profile"
)

var LegacyDotNetProfile = profile.Profile{
ProfileName: common.ProfileName("legacy-dotnet-instrumentation"),
MinimumTier: common.OnPremOdigosTier,
ShortDescription: "Instrument DotNet applications using legacy OpenTelemetry instrumentation (needed for 6.0 support)",
}
12 changes: 12 additions & 0 deletions profiles/manifests/legacy-dotnet-instrumentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: odigos.io/v1alpha1
kind: InstrumentationRule
metadata:
name: legacy-dotnet-instrumentation
spec:
ruleName: "legacy dotnet instrumentation"
notes: "Auto generated rule from legacy-dotnet-instrumentation profile. Do not edit."
otelSdks:
otelSdkByLanguage:
dotnet:
sdkTier: "enterprise"
sdkType: "native"

0 comments on commit 72d925b

Please sign in to comment.