Skip to content

Commit b33b4a0

Browse files
committed
Merge branch 'main' into aspire9
2 parents ac9b8df + 8ca4f2e commit b33b4a0

File tree

166 files changed

+2499
-2400
lines changed

Some content is hidden

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

166 files changed

+2499
-2400
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ jobs:
137137
id: cache-node-modules
138138
with:
139139
path: src/Exceptionless.Web/ClientApp/node_modules
140-
key: node-modules-${{ hashFiles('package-lock.json') }}
140+
key: node-modules-${{ hashFiles('src/Exceptionless.Web/ClientApp/package-lock.json') }}
141141

142142
- name: Install Npm Packages
143143
if: steps.cache-node-modules.outputs.cache-hit != 'true'
144-
run: npm ci --force
144+
run: npm ci
145145

146146
- name: Lint Client
147147
run: npm run lint

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<EmbedUntrackedSources>true</EmbedUntrackedSources>
1717
<ReferenceFoundatioSource>false</ReferenceFoundatioSource>
1818
<ReferenceFoundatioRepositoriesSource>false</ReferenceFoundatioRepositoriesSource>
19-
<FoundatioVersion>11.0.5</FoundatioVersion>
19+
<FoundatioVersion>11.0.6-alpha.0.18</FoundatioVersion>
2020
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
2121
</PropertyGroup>
2222

src/Exceptionless.Insulation/Exceptionless.Insulation.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<ItemGroup>
33
<PackageReference Include="Geocoding.Google" Version="4.0.1" />
44
<PackageReference Include="MaxMind.GeoIP2" Version="5.2.0" />
5-
<PackageReference Include="Foundatio.Aliyun" Version="$(FoundatioVersion)" />
6-
<PackageReference Include="Foundatio.AWS" Version="$(FoundatioVersion)" />
7-
<PackageReference Include="Foundatio.AzureStorage" Version="$(FoundatioVersion)" />
8-
<PackageReference Include="Foundatio.Minio" Version="$(FoundatioVersion)" />
9-
<PackageReference Include="Foundatio.RabbitMQ" Version="$(FoundatioVersion)" />
10-
<PackageReference Include="Foundatio.Redis" Version="$(FoundatioVersion)" />
5+
<PackageReference Include="Foundatio.Aliyun" Version="11.0.5" />
6+
<PackageReference Include="Foundatio.AWS" Version="11.0.5" />
7+
<PackageReference Include="Foundatio.AzureStorage" Version="11.0.5" />
8+
<PackageReference Include="Foundatio.Minio" Version="11.0.5" />
9+
<PackageReference Include="Foundatio.RabbitMQ" Version="11.0.5" />
10+
<PackageReference Include="Foundatio.Redis" Version="11.0.5" />
1111
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="9.0.0-rc.2.24473.5" />
1212
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="9.0.0-rc.2.24473.5" />
1313
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0-rc.2.24473.5" />

src/Exceptionless.Job/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ public static IHostBuilder CreateHostBuilder(string[] args)
6262
var options = AppOptions.ReadFromConfiguration(config);
6363
var apmConfig = new ApmConfig(config, $"job-{jobOptions.JobName.ToLowerUnderscoredWords('-')}", options.InformationalVersion, options.CacheOptions.Provider == "redis");
6464

65-
var configDictionary = config.ToDictionary("Serilog");
66-
Log.Information("Bootstrapping Exceptionless {JobName} job(s) in {AppMode} mode ({InformationalVersion}) on {MachineName} with settings {@Settings}", jobOptions.JobName ?? "All", environment, options.InformationalVersion, Environment.MachineName, configDictionary);
65+
Log.Information("Bootstrapping Exceptionless {JobName} job(s) in {AppMode} mode ({InformationalVersion}) on {MachineName} with options {@Options}", jobOptions.JobName ?? "All", environment, options.InformationalVersion, Environment.MachineName, options);
6766

6867
var builder = Host.CreateDefaultBuilder()
6968
.UseEnvironment(environment)

src/Exceptionless.Job/appsettings.Development.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ BaseURL: 'http://localhost:9001/#!'
1313

1414
Serilog:
1515
MinimumLevel:
16-
Default: Debug
16+
Default: Information
1717

1818
Apm:
1919
EnableLogs: false

src/Exceptionless.Web/ApmExtensions.cs

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static IHostBuilder AddApm(this IHostBuilder builder, ApmConfig config)
2828
builder.ConfigureServices(services =>
2929
{
3030
services.AddSingleton(config);
31-
services.AddHostedService(sp => new SelfDiagnosticsLoggingHostedService(sp.GetRequiredService<ILoggerFactory>(), config.Debug ? EventLevel.Verbose : null));
31+
//services.AddHostedService(sp => new SelfDiagnosticsLoggingHostedService(sp.GetRequiredService<ILoggerFactory>(), config.Debug ? EventLevel.Verbose : null));
3232

3333
services.AddOpenTelemetry().WithTracing(b =>
3434
{
@@ -41,6 +41,9 @@ public static IHostBuilder AddApm(this IHostBuilder builder, ApmConfig config)
4141
if (context.Request.Path.StartsWithSegments("/api/v2/push", StringComparison.OrdinalIgnoreCase))
4242
return false;
4343

44+
if (context.Request.Path.StartsWithSegments("/health", StringComparison.OrdinalIgnoreCase))
45+
return false;
46+
4447
if (context.Request.Headers.UserAgent.ToString().Contains("HealthChecker"))
4548
return false;
4649

@@ -84,7 +87,30 @@ public static IHostBuilder AddApm(this IHostBuilder builder, ApmConfig config)
8487
b.AddConsoleExporter();
8588

8689
if (config.EnableExporter)
90+
{
91+
b.AddProcessor(new FilteringProcessor(activity =>
92+
{
93+
// filter out insignificant activities
94+
if (config.MinDurationMs > 0 && activity.Duration < TimeSpan.FromMilliseconds(config.MinDurationMs))
95+
return false;
96+
97+
if (activity is { DisplayName: "LLEN", Parent: null })
98+
return false;
99+
100+
if (activity.DisplayName == "Elasticsearch HEAD")
101+
return false;
102+
103+
if (activity.GetTagItem("db.statement") is not string statement)
104+
return true;
105+
106+
if (statement.EndsWith("__PING__"))
107+
return false;
108+
109+
return true;
110+
}));
111+
87112
b.AddOtlpExporter();
113+
}
88114
});
89115

90116
services.AddOpenTelemetry().WithMetrics(b =>
@@ -175,3 +201,19 @@ public ApmConfig(IConfigurationRoot config, string processName, string? serviceV
175201
public bool Debug => _apmConfig.GetValue("Debug", false);
176202
public bool Console => _apmConfig.GetValue("Console", false);
177203
}
204+
205+
public class FilteringProcessor : BaseProcessor<Activity>
206+
{
207+
private readonly Func<Activity, bool> _filter;
208+
209+
public FilteringProcessor(Func<Activity, bool> filter)
210+
{
211+
_filter = filter ?? throw new ArgumentNullException(nameof(filter));
212+
}
213+
214+
public override void OnEnd(Activity activity)
215+
{
216+
if (!_filter(activity))
217+
activity.ActivityTraceFlags &= ~ActivityTraceFlags.Recorded;
218+
}
219+
}

src/Exceptionless.Web/ClientApp/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
package-lock.json
33
pnpm-lock.yaml
44
yarn.lock
5+
src/lib/features/shared/components/ui

src/Exceptionless.Web/ClientApp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ You can preview the production build with `npm run preview`.
4242
You can upgrade [shadcn-svelte components](https://www.shadcn-svelte.com/) by running the following command
4343

4444
```bash
45-
npx shadcn-svelte@latest update
45+
npx shadcn-svelte@next update
4646
```

src/Exceptionless.Web/ClientApp/components.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
},
99
"aliases": {
1010
"components": "$comp",
11-
"utils": "$lib/utils"
12-
}
11+
"utils": "$lib/utils",
12+
"ui": "$lib/features/shared/components/ui",
13+
"hooks": "$lib/hooks"
14+
},
15+
"typescript": true,
16+
"registry": "https://next.shadcn-svelte.com/registry"
1317
}

src/Exceptionless.Web/ClientApp/eslint.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export default tseslint.config(
3232
{
3333
ignores: ['build/', '.svelte-kit/', 'dist/', 'src/lib/generated/api.ts', 'src/lib/features/shared/components/ui/']
3434
},
35-
3635
{
3736
rules: {
3837
'perfectionist/sort-svelte-attributes': 'off'

0 commit comments

Comments
 (0)