Skip to content

Commit

Permalink
remove traces for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau committed Jun 10, 2024
1 parent f1f4c91 commit e92e117
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 87 deletions.
4 changes: 2 additions & 2 deletions apis/flowcollector/v1beta2/flowcollector_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,10 @@ type FlowCollectorOpenTelemetry struct {
// +optional
Metrics FlowCollectorOpenTelemetryMetrics `json:"metrics"`

// TODO: remove traces if confusing
// TODO: add traces in future
// Open telemetry configuration for traces.
// +optional
Traces FlowCollectorOpenTelemetryTraces `json:"traces"`
//Traces FlowCollectorOpenTelemetryTraces `json:"traces"`
}

type ServerTLSConfigType string
Expand Down
1 change: 0 additions & 1 deletion apis/flowcollector/v1beta2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions bundle/manifests/flows.netobserv.io_flowcollectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5855,22 +5855,6 @@ spec:
type: string
type: object
type: object
traces:
description: |-
TODO: remove traces if confusing
Open telemetry configuration for traces.
properties:
enable:
default: true
description: Set `enable` to `true` to send traces to
Open Telemetry receiver.
type: boolean
spanSplitter:
description: Separate span for each prefix listed
items:
type: string
type: array
type: object
type:
description: Type of Open Telemetry connection. The available
options are `http` and `grpc`.
Expand Down
15 changes: 0 additions & 15 deletions config/crd/bases/flows.netobserv.io_flowcollectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5401,21 +5401,6 @@ spec:
type: string
type: object
type: object
traces:
description: |-
TODO: remove traces if confusing
Open telemetry configuration for traces.
properties:
enable:
default: true
description: Set `enable` to `true` to send traces to Open Telemetry receiver.
type: boolean
spanSplitter:
description: Separate span for each prefix listed
items:
type: string
type: array
type: object
type:
description: Type of Open Telemetry connection. The available options are `http` and `grpc`.
type: string
Expand Down
7 changes: 1 addition & 6 deletions config/samples/flows_v1beta2_flowcollector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,4 @@ spec:
# enable: true
# prefix: netobserv
# pushTimeInterval: 20s
# expiryTime: 2m
# traces:
# enable: true
# spanSplitter:
# - source.
# - destination.
# expiryTime: 2m
5 changes: 3 additions & 2 deletions controllers/flp/flp_pipeline_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,13 @@ func (b *PipelineBuilder) createOpenTelemetryStage(name string, spec *flowslates

// otel traces config
var traces *api.EncodeOtlpTraces
if spec.Traces.Enable != nil && *spec.Traces.Enable {
// TODO: add traces in future
/*if spec.Traces.Enable != nil && *spec.Traces.Enable {
traces = &api.EncodeOtlpTraces{
OtlpConnectionInfo: &conn,
SpanSplitter: spec.Traces.SpanSplitter,
}
}
}*/

// add transform stage and encode otel if enabled
if logs != nil || metrics != nil || traces != nil {
Expand Down
45 changes: 0 additions & 45 deletions docs/FlowCollector.md
Original file line number Diff line number Diff line change
Expand Up @@ -11959,14 +11959,6 @@ Setting `customRules` will fully override the default rules allowing you to expo
TLS client configuration.<br/>
</td>
<td>false</td>
</tr><tr>
<td><b><a href="#flowcollectorspecexportersindexopentelemetrytraces">traces</a></b></td>
<td>object</td>
<td>
TODO: remove traces if confusing
Open telemetry configuration for traces.<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>type</b></td>
<td>string</td>
Expand Down Expand Up @@ -12275,43 +12267,6 @@ If the namespace is different, the config map or the secret is copied so that it
</table>


### FlowCollector.spec.exporters[index].openTelemetry.traces
<sup><sup>[↩ Parent](#flowcollectorspecexportersindexopentelemetry)</sup></sup>



TODO: remove traces if confusing
Open telemetry configuration for traces.

<table>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
<th>Required</th>
</tr>
</thead>
<tbody><tr>
<td><b>enable</b></td>
<td>boolean</td>
<td>
Set `enable` to `true` to send traces to Open Telemetry receiver.<br/>
<br/>
<i>Default</i>: true<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>spanSplitter</b></td>
<td>[]string</td>
<td>
Separate span for each prefix listed<br/>
</td>
<td>false</td>
</tr></tbody>
</table>


### FlowCollector.spec.kafka
<sup><sup>[↩ Parent](#flowcollectorspec-1)</sup></sup>

Expand Down

0 comments on commit e92e117

Please sign in to comment.