Skip to content

[BUG]: Data race issue with span #3270

Open
@jachym-tousek-keboola

Description

@jachym-tousek-keboola

Tracer Version(s)

1.72.1

Go Version(s)

1.24.0

Bug Report

Lately we're seeing data race errors in our logs.

Read:

labels = append(labels, traceprof.TraceEndpoint, localRootSpan.Resource)

Image

Write:

s.Resource = v

Image

The write side seems to have a lock from here:

s.Lock()
defer s.Unlock()

My guess is that applyPPROFLabels is missing localRootSpan.RLock()? Should I send a pull request that would add it?

Reproduction Code

No response

Error Logs

No response

Go Env Output

No response

Metadata

Metadata

Assignees

Labels

bugunintended behavior that has to be fixedtracer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions