Skip to content

Commit

Permalink
update go
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Tan <[email protected]>
  • Loading branch information
JaredTan95 committed Nov 8, 2024
1 parent 7241e70 commit f03f36b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/openinsight-release-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.ACTIONS_TOKEN }}
- uses: actions/checkout@v4
- run: make genotelcontribcol
- name: Build otel col contrib amd64
run: GOOS=linux GOARCH=amd64 make otelcontribcol && cp ./bin/otelcontribcol_linux_amd64 ./cmd/otelcontribcol_linux_amd64
- name: Build otel col contrib arm64
Expand Down
2 changes: 2 additions & 0 deletions connector/tracedurationconnector/connector_logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func (c *logsConnector) exportTracesAsLogs(ctx context.Context, resourceSpans []
var traceId pcommon.TraceID
var spanId pcommon.SpanID
var stmp pcommon.Timestamp
// TODO: what the relation of resource after group
for i := 0; i < len(resourceSpans); i++ {
rspans := resourceSpans[i]
resourceAttr := rspans.Resource().Attributes()
Expand All @@ -142,6 +143,7 @@ func (c *logsConnector) exportTracesAsLogs(ctx context.Context, resourceSpans []
traceId = span.TraceID()
spanId = span.SpanID()
spanName = span.Name()
// get root span's start time as trace start time
stmp = span.StartTimestamp()
} else {
if minSpanStartTime == 0 || starTime < minSpanStartTime {
Expand Down
1 change: 1 addition & 0 deletions connector/tracedurationconnector/testdata/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ exporters:

processors:
batch:
# dropping spans
filter/ottl:
error_mode: ignore
traces:
Expand Down

0 comments on commit f03f36b

Please sign in to comment.