Skip to content

Commit 7bd5e30

Browse files
committed
feat: add support for operator name
Signed-off-by: zirain <[email protected]>
1 parent 37bad8c commit 7bd5e30

File tree

7 files changed

+29
-0
lines changed

7 files changed

+29
-0
lines changed

api/v1alpha1/shared_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,9 @@ type Tracing struct {
833833
//
834834
// +optional
835835
CustomTags map[string]CustomTag `json:"customTags,omitempty"`
836+
// OperationName associated with the request matched to this route.
837+
// If tracing is enabled, it will be used as the span name reported for this request.
838+
OperationName *string `json:"OperationName,omitempty"`
836839
}
837840

838841
// CustomRedirect contains configuration for returning a custom redirect.

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/gateway-crds-helm/templates/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,6 +2269,11 @@ spec:
22692269
description: Tracing configures the tracing settings for the backend
22702270
or HTTPRoute.
22712271
properties:
2272+
OperationName:
2273+
description: |-
2274+
OperationName associated with the request matched to this route.
2275+
If tracing is enabled, it will be used as the span name reported for this request.
2276+
type: string
22722277
customTags:
22732278
additionalProperties:
22742279
properties:

charts/gateway-helm/crds/generated/gateway.envoyproxy.io_backendtrafficpolicies.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,6 +2268,11 @@ spec:
22682268
description: Tracing configures the tracing settings for the backend
22692269
or HTTPRoute.
22702270
properties:
2271+
OperationName:
2272+
description: |-
2273+
OperationName associated with the request matched to this route.
2274+
If tracing is enabled, it will be used as the span name reported for this request.
2275+
type: string
22712276
customTags:
22722277
additionalProperties:
22732278
properties:

site/content/en/latest/api/extension_types.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5176,6 +5176,7 @@ _Appears in:_
51765176
| --- | --- | --- | --- | --- |
51775177
| `samplingFraction` | _[Fraction](https://gateway-api.sigs.k8s.io/reference/1.4/spec/#fraction)_ | false | | SamplingFraction represents the fraction of requests that should be<br />selected for tracing if no prior sampling decision has been made.<br />This will take precedence over sampling fraction on EnvoyProxy if set. |
51785178
| `customTags` | _object (keys:string, values:[CustomTag](#customtag))_ | false | | CustomTags defines the custom tags to add to each span.<br />If provider is kubernetes, pod name and namespace are added by default. |
5179+
| `OperationName` | _string_ | true | | OperationName associated with the request matched to this route.<br />If tracing is enabled, it will be used as the span name reported for this request. |
51795180

51805181

51815182
#### TracingProvider

test/helm/gateway-crds-helm/all.out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23402,6 +23402,11 @@ spec:
2340223402
description: Tracing configures the tracing settings for the backend
2340323403
or HTTPRoute.
2340423404
properties:
23405+
OperationName:
23406+
description: |-
23407+
OperationName associated with the request matched to this route.
23408+
If tracing is enabled, it will be used as the span name reported for this request.
23409+
type: string
2340523410
customTags:
2340623411
additionalProperties:
2340723412
properties:

test/helm/gateway-crds-helm/envoy-gateway-crds.out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2746,6 +2746,11 @@ spec:
27462746
description: Tracing configures the tracing settings for the backend
27472747
or HTTPRoute.
27482748
properties:
2749+
OperationName:
2750+
description: |-
2751+
OperationName associated with the request matched to this route.
2752+
If tracing is enabled, it will be used as the span name reported for this request.
2753+
type: string
27492754
customTags:
27502755
additionalProperties:
27512756
properties:

0 commit comments

Comments
 (0)