Skip to content

Commit

Permalink
Merge pull request #964 from DataDog/jward/public_proxy
Browse files Browse the repository at this point in the history
Add public visibility to Internal Proxy methods.
  • Loading branch information
fuzzybinary authored Aug 9, 2022
2 parents dbe0209 + e9fe668 commit 58cff31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 58cff31

Please sign in to comment.