Skip to content

Commit

Permalink
Fix typos (#2403)
Browse files Browse the repository at this point in the history
Fixed 2 typos introduced in #2396
  • Loading branch information
BenElferink authored Feb 7, 2025
1 parent 12e8942 commit 3c5a428
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
5 changes: 2 additions & 3 deletions api/config/crd/bases/odigos.io_instrumentationrules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,15 @@ spec:
description: |-
Set a list of distribution names that take priority over the default distributions.
if a language is not in this list, the default distribution will be used.
it multiple distributions are specified for the same language, in one or many rules,
the behavior is undefined.
if multiple distributions are specified for the same language, in one or many rules, the behavior is undefined.
items:
type: string
type: array
required:
- otelDistroNames
type: object
otelSdks:
description: 'Deprecated: use OrelDistros instead.'
description: 'Deprecated: use OtelDistros instead.'
properties:
otelSdkByLanguage:
additionalProperties:
Expand Down
2 changes: 1 addition & 1 deletion api/odigos/v1alpha1/instrumentationrule_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type InstrumentationRuleSpec struct {
// Allows to configure payload collection aspects for different types of payloads.
PayloadCollection *instrumentationrules.PayloadCollection `json:"payloadCollection,omitempty"`

// Deprecated: use OrelDistros instead.
// Deprecated: use OtelDistros instead.
OtelSdks *instrumentationrules.OtelSdks `json:"otelSdks,omitempty"`

// Set the otel distros to use instead of the defaults.
Expand Down
3 changes: 1 addition & 2 deletions api/odigos/v1alpha1/instrumentationrules/otel-sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ type OtelDistros struct {

// Set a list of distribution names that take priority over the default distributions.
// if a language is not in this list, the default distribution will be used.
// it multiple distributions are specified for the same language, in one or many rules,
// the behavior is undefined.
// if multiple distributions are specified for the same language, in one or many rules, the behavior is undefined.
OtelDistroNames []string `json:"otelDistroNames"`
}
2 changes: 1 addition & 1 deletion docs/api-reference/odigos.io.v1alpha1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1869,7 +1869,7 @@ If empty, no instrumentation libraries will be used.</p>
<a href="https://pkg.go.dev/github.com/odigos-io/odigos/api/odigos/v1alpha1/instrumentationrules#OtelSdks"><code>instrumentationrules.OtelSdks</code></a>
</td>
<td>
<p>Deprecated: use OrelDistros instead.</p>
<p>Deprecated: use OtelDistros instead.</p>
</td>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,15 @@ spec:
description: |-
Set a list of distribution names that take priority over the default distributions.
if a language is not in this list, the default distribution will be used.
it multiple distributions are specified for the same language, in one or many rules,
the behavior is undefined.
if multiple distributions are specified for the same language, in one or many rules, the behavior is undefined.
items:
type: string
type: array
required:
- otelDistroNames
type: object
otelSdks:
description: 'Deprecated: use OrelDistros instead.'
description: 'Deprecated: use OtelDistros instead.'
properties:
otelSdkByLanguage:
additionalProperties:
Expand Down

0 comments on commit 3c5a428

Please sign in to comment.