Skip to content

Commit a60cf6a

Browse files
authored
Merge pull request #189 from bugsnag/releases/v1.10.0
Releases/v1.10.0
2 parents be82430 + b602448 commit a60cf6a

File tree

7 files changed

+45
-4
lines changed

7 files changed

+45
-4
lines changed

.buildkite/pipeline_trigger.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
if [[ "$BUILDKITE_MESSAGE" == *"[full ci]"* ||
44
"$BUILDKITE_BRANCH" == "next" ||
55
"$BUILDKITE_BRANCH" == "main" ||
6+
"$BUILDKITE_BRANCH" == releases/* ||
67
! -z "$FULL_SCHEDULED_BUILD" ||
78
"$BUILDKITE_PULL_REQUEST_BASE_BRANCH" == "main" ]]; then
89
echo "Running full build"

BugsnagPerformance/Assets/BugsnagPerformance/Scripts/Internal/Version.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
internal static class Version
44
{
55
//TODO set this using sed or something in the release automation task
6-
public const string VersionString = "1.9.0";
6+
public const string VersionString = "1.10.0";
77
}
88
}

BugsnagPerformance/Assets/BugsnagPerformance/Scripts/Models/ResourceModel.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public void Configure(PerformanceConfiguration config)
2727
new AttributeModel("service.name", GetServiceName(config)),
2828
new AttributeModel("bugsnag.app.platform", GetPlatform()),
2929
new AttributeModel("bugsnag.runtime_versions.unity", Application.unityVersion),
30+
new AttributeModel("os.type", GetOsType()),
31+
new AttributeModel("os.name", GetOsName()),
3032
new AttributeModel("device.screen_resolution.width", Screen.width),
3133
new AttributeModel("device.screen_resolution.height", Screen.height)
3234
};
@@ -85,6 +87,30 @@ private string GetPlatform()
8587
return string.Empty;
8688
}
8789

90+
private string GetOsType()
91+
{
92+
switch (Application.platform)
93+
{
94+
case RuntimePlatform.IPhonePlayer:
95+
return "darwin";
96+
case RuntimePlatform.Android:
97+
return "linux";
98+
}
99+
return string.Empty;
100+
}
101+
102+
private string GetOsName()
103+
{
104+
switch (Application.platform)
105+
{
106+
case RuntimePlatform.IPhonePlayer:
107+
return "iOS";
108+
case RuntimePlatform.Android:
109+
return "android";
110+
}
111+
return string.Empty;
112+
}
113+
88114
private AttributeModel GetNativeVersionInfo(PerformanceConfiguration config)
89115
{
90116
switch (Application.platform)

BugsnagPerformance/Assets/BugsnagPerformance/Scripts/Public/PerformanceConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class PerformanceConfiguration
2121

2222
private const string LEGACY_DEFAULT_ENDPOINT = "https://otlp.bugsnag.com/v1/traces";
2323
private const string DEFAULT_ENDPOINT = "https://{0}.otlp.bugsnag.com/v1/traces";
24-
private const string HUB_ENDPOINT = "https://{0}.insighthub.smartbear.com/v1/traces";
24+
private const string HUB_ENDPOINT = "https://{0}.otlp.insighthub.smartbear.com/v1/traces";
2525
private const string HUB_API_PREFIX = "00000";
2626

2727
internal const int DEFAULT_ATTRIBUTE_STRING_VALUE_LIMIT = 1024;

BugsnagPerformance/Assets/UnitTests/ConfigurationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class ConfigurationTests
1616
private const string HUB_API_KEY = "00000abcdef1234567890abcdef12345";
1717
private const string LEGACY_DEFAULT_ENDPOINT = "https://otlp.bugsnag.com/v1/traces";
1818
private const string DEFAULT_ENDPOINT = "https://{0}.otlp.bugsnag.com/v1/traces";
19-
private const string HUB_ENDPOINT = "https://{0}.insighthub.smartbear.com/v1/traces";
19+
private const string HUB_ENDPOINT = "https://{0}.otlp.insighthub.smartbear.com/v1/traces";
2020
private DateTimeOffset CustomStartTime = new DateTimeOffset(1985, 1, 1, 1, 1, 1, System.TimeSpan.Zero);
2121
private DateTimeOffset CustomEndTime = new DateTimeOffset(1986, 1, 1, 1, 1, 1, System.TimeSpan.Zero);
2222

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## v1.10.0 (2025-06-03)
4+
5+
### Additions
6+
7+
- Add os.type and os.name resource attributes [#185](https://github.com/bugsnag/bugsnag-unity-performance/pull/185)
8+
9+
### Bug Fixes
10+
11+
- Fix issue where hub endpoint was missing .otlp. [#187](https://github.com/bugsnag/bugsnag-unity-performance/pull/187)
12+
313
## v1.9.0 (2025-05-27)
414

515
### Additions

features/manual_spans.feature

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ Feature: Manual creation of spans
6060
* the trace payload field "resourceSpans.0.resource" string attribute "device.manufacturer" exists
6161
* the trace payload field "resourceSpans.0.resource" string attribute "host.arch" exists
6262
* the trace payload field "resourceSpans.0.resource" string attribute "bugsnag.app.version_code" exists
63+
* the trace payload field "resourceSpans.0.resource" string attribute "os.name" equals "android"
64+
* the trace payload field "resourceSpans.0.resource" string attribute "os.type" equals "linux"
6365

64-
@cocoa_only
66+
@ios_only
6567
Scenario: iOS Specific Resource Attributes
6668
When I run the game in the "ManualSpan" state
6769
And I wait for 1 span
@@ -71,6 +73,8 @@ Feature: Manual creation of spans
7173
* the trace payload field "resourceSpans.0.resource" string attribute "device.manufacturer" exists
7274
* the trace payload field "resourceSpans.0.resource" string attribute "host.arch" exists
7375
* the trace payload field "resourceSpans.0.resource" string attribute "bugsnag.app.bundle_version" exists
76+
* the trace payload field "resourceSpans.0.resource" string attribute "os.name" equals "iOS"
77+
* the trace payload field "resourceSpans.0.resource" string attribute "os.type" equals "darwin"
7478

7579
Scenario: null span name becomes empty string
7680
When I run the game in the "NullSpanName" state

0 commit comments

Comments
 (0)