Skip to content

Commit fdb04ed

Browse files
committed
PR feedback -fix compilation on netstandard
1 parent 0142e7b commit fdb04ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/OpenTelemetry.Resources.Host/HostDetector.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,15 @@ internal HostDetector(
8585
Architecture.X64 => "x64",
8686
Architecture.Arm => "arm32",
8787
Architecture.Arm64 => "arm64",
88+
#if NET
8889
Architecture.S390x => "s390x",
8990
Architecture.Armv6 => "arm32",
9091
Architecture.Ppc64le => "ppc64",
9192

9293
// following architectures do not have a mapping in OTEL spec https://github.com/open-telemetry/semantic-conventions/blob/v1.37.0/docs/resource/host.md
9394
Architecture.Wasm => null,
9495
Architecture.LoongArch64 => null,
96+
#endif
9597
_ => null,
9698
};
9799
}

0 commit comments

Comments
 (0)