Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add public visibility to Internal Proxy methods. #964

Merged
merged 1 commit into from
Aug 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Sources/Datadog/DatadogInternal/_InternalProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ import Foundation
/// Methods, members, and functionality of this class are subject to change without notice, as they
/// are not considered part of the public interface of the Datadog SDK.
public class _InternalProxy {
let _telemtry = _TelemetryProxy()
public let _telemtry = _TelemetryProxy()
}

public class _TelemetryProxy {
/// See Telementry.debug
func debug(id: String, message: String) {
public func debug(id: String, message: String) {
DD.telemetry.debug(id: id, message: message)
}

/// See Telementry.error
func error(id: String, message: String, kind: String?, stack: String?) {
public func error(id: String, message: String, kind: String?, stack: String?) {
DD.telemetry.error(id: id, message: message, kind: kind, stack: stack)
}
}
2 changes: 1 addition & 1 deletion Sources/Datadog/RUM/_RUMInternalProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class _RUMInternalProxy {
self.subscriber = subscriber
}

func addLongTask(at: Date, duration: TimeInterval, attributes: [AttributeKey: AttributeValue] = [:]) {
public func addLongTask(at: Date, duration: TimeInterval, attributes: [AttributeKey: AttributeValue] = [:]) {
let longTaskCommand = RUMAddLongTaskCommand(time: at, attributes: attributes, duration: duration)

subscriber?.process(command: longTaskCommand)
Expand Down