Skip to content

Commit

Permalink
Merge branch 'main' into filtered-otel-spans
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescrosswell authored Jan 17, 2025
2 parents ab47bae + b73a294 commit a717a31
Show file tree
Hide file tree
Showing 45 changed files with 15 additions and 6,724 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

- OTel activities that are marked as not recorded are no longer sent to Sentry ([#3890](https://github.com/getsentry/sentry-dotnet/pull/3890))

### Dependencies

- Bump Native SDK from v0.7.17 to v0.7.18 ([#3891](https://github.com/getsentry/sentry-dotnet/pull/3891))
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0718)
- [diff](https://github.com/getsentry/sentry-native/compare/0.7.17...0.7.18)

## 5.0.1

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion modules/sentry-native
Submodule sentry-native updated 48 files
+1 −1 .github/workflows/codeql.yml
+9 −0 CHANGELOG.md
+32 −8 CMakeLists.txt
+2 −0 CONTRIBUTING.md
+6 −6 README.md
+38 −2 examples/example.c
+1 −1 external/breakpad
+1 −1 external/crashpad
+52 −21 include/sentry.h
+1 −1 ndk/gradle.properties
+1 −0 src/CMakeLists.txt
+4 −4 src/backends/sentry_backend_breakpad.cpp
+11 −11 src/backends/sentry_backend_crashpad.cpp
+10 −10 src/backends/sentry_backend_inproc.c
+2 −2 src/modulefinder/sentry_modulefinder_linux.c
+43 −1 src/modulefinder/sentry_modulefinder_windows.c
+1 −1 src/path/sentry_path_unix.c
+1 −1 src/path/sentry_path_windows.c
+77 −59 src/sentry_core.c
+3 −1 src/sentry_core.h
+4 −4 src/sentry_database.c
+1 −1 src/sentry_envelope.c
+5 −1 src/sentry_logger.c
+5 −4 src/sentry_logger.h
+15 −1 src/sentry_options.c
+1 −0 src/sentry_options.h
+28 −4 src/sentry_os.c
+13 −0 src/sentry_sampling_context.h
+7 −7 src/sentry_sync.c
+52 −38 src/sentry_tracing.c
+1 −1 src/sentry_tracing.h
+8 −8 src/sentry_transport.c
+6 −0 src/symbolizer/sentry_symbolizer_windows.c
+1 −1 src/transports/sentry_function_transport.c
+1 −1 src/transports/sentry_transport_curl.c
+5 −5 src/transports/sentry_transport_winhttp.c
+2 −2 tests/assertions.py
+1 −1 tests/test_integration_http.py
+117 −9 tests/unit/test_sampling.c
+2 −2 tests/unit/test_session.c
+78 −78 tests/unit/test_tracing.c
+1 −1 tests/win_utils.py
+244 −0 toolchains/xbox/CMakeGDKScarlett.cmake
+68 −0 toolchains/xbox/GDK-targets.cmake
+41 −0 toolchains/xbox/gdk_build.props
+3 −0 toolchains/xbox/gdk_build.props.md
+62 −0 toolchains/xbox/gxdk_xs_toolchain.cmake
+20 −0 toolchains/xbox/xbox_build.md
14 changes: 1 addition & 13 deletions src/Sentry/Internal/SdkComposer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private ITransport CreateTransport()
_options.LogDebug("Creating transport.");

// Start from either the transport given on options, or create a new HTTP transport.
var transport = _options.Transport ?? CreateHttpTransport();
var transport = _options.Transport ?? new LazyHttpTransport(_options);

// When a cache directory path is given, wrap the transport in a caching transport.
if (!string.IsNullOrWhiteSpace(_options.CacheDirectoryPath))
Expand Down Expand Up @@ -75,18 +75,6 @@ You can set a different environment via SENTRY_ENVIRONMENT env var or programati
return transport;
}

private LazyHttpTransport CreateHttpTransport()
{
if (_options.SentryHttpClientFactory is not null)
{
_options.LogDebug(
"Using ISentryHttpClientFactory set through options: {0}.",
_options.SentryHttpClientFactory.GetType().Name);
}

return new LazyHttpTransport(_options);
}

public IBackgroundWorker CreateBackgroundWorker()
{
if (_options.BackgroundWorker is { } worker)
Expand Down
7 changes: 7 additions & 0 deletions src/Sentry/SentryOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,13 @@ internal IEnumerable<ISdkIntegration> Integrations

internal HttpClient GetHttpClient()
{
if (SentryHttpClientFactory is not null)
{
DiagnosticLogger?.LogDebug(
"Using ISentryHttpClientFactory set through options: {0}.",
SentryHttpClientFactory.GetType().Name);
}

var factory = SentryHttpClientFactory ?? new DefaultSentryHttpClientFactory();
return factory.Create(this);
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit a717a31

Please sign in to comment.