Skip to content

Commit e6ec7d8

Browse files
authored
DEMRUM-1663: Cleanup (#307)
* Fix headers. * Update header linting. * Remove .swiftpm and .gitignore from a project. * Remove custom session id from AppStart. * Remove session start event. * Fix attribute crash. * Update Package.swift dependency graph - remove unused dependencies, use OTel Api and SDK directly instead of SplunkOpenTelemetry. * Remove unneeded OTel file. * Enable linting on all modules. Fix linter issues. * Fix couple more linter issues. * Remove ApiPaths. * Remove service version from resource tests. * Replace old config endpoint with a generic one. * Remove SplunkLogger targets. * Make ThreadSafeDictionary internal. * Rename MutableAttributes file. * Move MutableAttributes extension and ThreadSafeDictionary into Agent directory from Public API directory. * Refactor MutableAttributes. * Revert licence year pattern in lint config. * Fix couple more lint issues. * Fix PR feedback issues.
1 parent 5f530e8 commit e6ec7d8

File tree

258 files changed

+716
-1076
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+716
-1076
lines changed

Applications/AgentTestApp/AgentTestApp/AppDelegate.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
/*
3-
Copyright 2024 Splunk Inc.
3+
Copyright 2025 Splunk Inc.
44

55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -42,8 +42,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
4242
.spanInterceptor { spanData in
4343
var attributes = spanData.attributes
4444
attributes["test_attribute"] = AttributeValue("test_value")
45+
4546
var modifiedSpan = spanData
4647
modifiedSpan.settingAttributes(attributes)
48+
modifiedSpan.settingTotalAttributeCount(attributes.count)
4749

4850
return modifiedSpan
4951
}

Applications/AgentTestApp/AgentTestApp/Features/Crashes.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
/*
3-
Copyright 2024 Splunk Inc.
3+
Copyright 2025 Splunk Inc.
44

55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@ See the License for the specific language governing permissions and
1515
limitations under the License.
1616
*/
1717

18-
1918
import Foundation
2019

2120
class Crashes {

Applications/AgentTestApp/AgentTestApp/Features/CrashesViewController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
/*
3-
Copyright 2024 Splunk Inc.
3+
Copyright 2025 Splunk Inc.
44

55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@ See the License for the specific language governing permissions and
1515
limitations under the License.
1616
*/
1717

18-
1918
import Foundation
2019
import UIKit
2120

Applications/AgentTestApp/AgentTestApp/Features/NetworkCalls.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
/*
3-
Copyright 2024 Splunk Inc.
3+
Copyright 2025 Splunk Inc.
44

55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@ See the License for the specific language governing permissions and
1515
limitations under the License.
1616
*/
1717

18-
1918
import Foundation
2019

2120
class NetworkCalls {

Applications/AgentTestApp/AgentTestApp/Features/NetworkCallsViewController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
/*
3-
Copyright 2024 Splunk Inc.
3+
Copyright 2025 Splunk Inc.
44

55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@ See the License for the specific language governing permissions and
1515
limitations under the License.
1616
*/
1717

18-
1918
import UIKit
2019

2120
class NetworkCallsViewController: UIViewController {

Applications/AgentTestApp/AgentTestApp/Features/SlowFrameBeatingHeartView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
/*
3-
Copyright 2024 Splunk Inc.
3+
Copyright 2025 Splunk Inc.
44

55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.

Applications/AgentTestApp/AgentTestApp/Features/SlowFrameDetectorViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
/*
3-
Copyright 2024 Splunk Inc.
3+
Copyright 2025 Splunk Inc.
44

55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.

Applications/AgentTestApp/AgentTestApp/Features/TestApiCalls.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
/*
3-
Copyright 2024 Splunk Inc.
3+
Copyright 2025 Splunk Inc.
44

55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.

Applications/AgentTestApp/AgentTestApp/Features/TestApiCallsViewController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
/*
3-
Copyright 2024 Splunk Inc.
3+
Copyright 2025 Splunk Inc.
44

55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@ See the License for the specific language governing permissions and
1515
limitations under the License.
1616
*/
1717

18-
1918
import UIKit
2019

2120
class TestApiCallsViewController: UIViewController {

Applications/AgentTestApp/AgentTestApp/SceneDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
/*
3-
Copyright 2024 Splunk Inc.
3+
Copyright 2025 Splunk Inc.
44

55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)