Skip to content

Commit

Permalink
Merge branch 'main' into java-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yodigos authored Sep 19, 2024
2 parents 73fd9ed + 1eccf09 commit d27d908
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cli/cmd/resources/profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ var (
ShortDescription: "Collect any payload from the cluster where supported with default settings",
ClientObject: &odigosv1alpha1.InstrumentationRule{},
}
dbPayloadCollectionProfile = Profile{
ProfileName: common.ProfileName("db-payload-collection"),
ShortDescription: "Collect db payload from the cluster where supported with default settings",
ClientObject: &odigosv1alpha1.InstrumentationRule{},
}
semconvUpgraderProfile = Profile{
ProfileName: common.ProfileName("semconv"),
ShortDescription: "Upgrade and align some attribute names to a newer version of the OpenTelemetry semantic conventions",
Expand Down Expand Up @@ -55,11 +60,10 @@ var (
ProfileName: common.ProfileName("code-attributes"),
ShortDescription: "Record span attributes in 'code' namespace where supported",
}

kratosProfile = Profile{
ProfileName: common.ProfileName("kratos"),
ShortDescription: "Bundle profile that includes full-payload-collection, semconv, category-attributes, copy-scope, hostname-as-podname, java-native-instrumentations, code-attributes",
Dependencies: []common.ProfileName{"full-payload-collection", "semconv", "category-attributes", "copy-scope", "hostname-as-podname", "java-native-instrumentations", "code-attributes"},
ShortDescription: "Bundle profile that includes db-payload-collection, semconv, category-attributes, copy-scope, hostname-as-podname, java-native-instrumentations, code-attributes",
Dependencies: []common.ProfileName{"db-payload-collection", "semconv", "category-attributes", "copy-scope", "hostname-as-podname", "java-native-instrumentations", "code-attributes"},
}
)

Expand All @@ -68,7 +72,7 @@ func GetAvailableCommunityProfiles() []Profile {
}

func GetAvailableOnPremProfiles() []Profile {
return append([]Profile{fullPayloadCollectionProfile, categoryAttributesProfile, hostnameAsPodNameProfile, javaNativeInstrumentationsProfile, kratosProfile},
return append([]Profile{fullPayloadCollectionProfile, dbPayloadCollectionProfile, categoryAttributesProfile, hostnameAsPodNameProfile, javaNativeInstrumentationsProfile, kratosProfile},
GetAvailableCommunityProfiles()...)
}

Expand Down
9 changes: 9 additions & 0 deletions cli/cmd/resources/profiles/db-payload-collection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: odigos.io/v1alpha1
kind: InstrumentationRule
metadata:
name: db-payload-collection
spec:
ruleName: "db payload collection"
notes: "Auto generated rule from db-payload-collection profile. Do not edit."
payloadCollection:
dbQuery: {}

0 comments on commit d27d908

Please sign in to comment.