|
1 | 1 | using System.Net.Http.Headers; |
| 2 | +using System.Runtime.InteropServices; |
2 | 3 | using Microsoft.Extensions.DependencyInjection; |
3 | 4 | using Microsoft.Extensions.Options; |
4 | 5 | using PostHog; |
@@ -370,6 +371,9 @@ public async Task SendsCorrectPayload() |
370 | 371 | "properties": { |
371 | 372 | "$lib": "posthog-dotnet", |
372 | 373 | "$lib_version": "{{VersionConstants.Version}}", |
| 374 | + "$os": "{{RuntimeInformation.OSDescription}}", |
| 375 | + "$framework": "{{RuntimeInformation.FrameworkDescription}}", |
| 376 | + "$arch": "{{RuntimeInformation.ProcessArchitecture}}", |
373 | 377 | "$geoip_disable": true |
374 | 378 | }, |
375 | 379 | "api_key": "fake-project-api-key", |
@@ -411,6 +415,9 @@ public async Task SendsCorrectPayloadWithPersonProperties() |
411 | 415 | }, |
412 | 416 | "$lib": "posthog-dotnet", |
413 | 417 | "$lib_version": "{{VersionConstants.Version}}", |
| 418 | + "$os": "{{RuntimeInformation.OSDescription}}", |
| 419 | + "$framework": "{{RuntimeInformation.FrameworkDescription}}", |
| 420 | + "$arch": "{{RuntimeInformation.ProcessArchitecture}}", |
414 | 421 | "$geoip_disable": true |
415 | 422 | }, |
416 | 423 | "api_key": "fake-project-api-key", |
@@ -445,6 +452,9 @@ public async Task SendsCorrectPayloadWithSuperProperties() |
445 | 452 | "properties": { |
446 | 453 | "$lib": "posthog-dotnet", |
447 | 454 | "$lib_version": "{{VersionConstants.Version}}", |
| 455 | + "$os": "{{RuntimeInformation.OSDescription}}", |
| 456 | + "$framework": "{{RuntimeInformation.FrameworkDescription}}", |
| 457 | + "$arch": "{{RuntimeInformation.ProcessArchitecture}}", |
448 | 458 | "$geoip_disable": true, |
449 | 459 | "source": "repo-name" |
450 | 460 | }, |
@@ -481,6 +491,9 @@ public async Task SendsCorrectPayload() |
481 | 491 | }, |
482 | 492 | "$lib": "posthog-dotnet", |
483 | 493 | "$lib_version": "{{VersionConstants.Version}}", |
| 494 | + "$os": "{{RuntimeInformation.OSDescription}}", |
| 495 | + "$framework": "{{RuntimeInformation.FrameworkDescription}}", |
| 496 | + "$arch": "{{RuntimeInformation.ProcessArchitecture}}", |
484 | 497 | "$geoip_disable": true |
485 | 498 | }, |
486 | 499 | "api_key": "fake-project-api-key", |
|
0 commit comments