Skip to content

Moves darwin targets to compile on linux#2

Open
jescriba wants to merge 1 commit intomainfrom
joshua/otel-darwin-target
Open

Moves darwin targets to compile on linux#2
jescriba wants to merge 1 commit intomainfrom
joshua/otel-darwin-target

Conversation

@jescriba
Copy link
Copy Markdown

@jescriba jescriba commented Feb 4, 2026

Attempt to get dependabot to work by having darwin only targets compile for linux

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Comment @cursor review or bugbot run to trigger another review on this PR

}
class URLSessionLogger {
static var runningSpans = [String: Span]()
static var runningSpansQueue = DispatchQueue(label: "io.opentelemetry.URLSessionLogger")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused static variables in non-Darwin URLSessionLogger stub

Low Severity

The non-Darwin stub of URLSessionLogger declares runningSpans and runningSpansQueue static variables, but they are never used. The stub methods (processAndLogRequest, logResponse, logError) are all no-ops that don't access these variables. The corresponding URLSessionInstrumentation.startedRequestSpans on non-Darwin also returns [] directly without using these.

Fix in Cursor Fix in Web


public var version: String {
let version = ProcessInfo.processInfo.operatingSystemVersion
return "\(version.majorVersion).\(version.minorVersion).\(version.patchVersion)"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicated code between Darwin and non-Darwin implementations

Low Severity

The description and version computed properties have identical implementations in both Darwin (lines 19-20, 37-40) and non-Darwin (lines 48-50, 60-62) versions of OperatingSystemDataSource. Both use name + " " + ProcessInfo.processInfo.operatingSystemVersionString for description and the same ProcessInfo.processInfo.operatingSystemVersion formatting for version.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant