File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public static IResourceBuilder<OpenTelemetryCollectorResource> AddOpenTelemetryC
39
39
40
40
var resource = new OpenTelemetryCollectorResource ( name ) ;
41
41
var resourceBuilder = builder . AddResource ( resource )
42
- . WithImage ( settings . CollectorImage , settings . CollectorVersion )
42
+ . WithImage ( settings . CollectorImage , settings . CollectorTag )
43
43
. WithEnvironment ( "ASPIRE_ENDPOINT" , dashboardOtlpEndpoint )
44
44
. WithEnvironment ( "ASPIRE_API_KEY" , builder . Configuration [ DashboardOtlpApiKeyVariableName ] ) ;
45
45
Original file line number Diff line number Diff line change @@ -6,14 +6,24 @@ namespace Aspire.Hosting;
6
6
public class OpenTelemetryCollectorSettings
7
7
{
8
8
/// <summary>
9
- /// The version of the collector, defaults to latest
9
+ /// The Tag to use for the collector
10
10
/// </summary>
11
- public string CollectorVersion { get ; set ; } = "latest" ;
11
+ public string CollectorTag { get ; set ; } = "latest" ;
12
+
13
+ /// <summary>
14
+ /// The registry for the image
15
+ /// </summary>
16
+ public string Registry { get ; set ; } = "ghcr.io" ;
17
+
18
+ /// <summary>
19
+ /// The collector image path
20
+ /// </summary>
21
+ public string Image { get ; set ; } = "open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib" ;
12
22
13
23
/// <summary>
14
24
/// The image of the collector, defaults to ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib
15
25
/// </summary>
16
- public string CollectorImage { get ; set ; } = "ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib" ;
26
+ public string CollectorImage { get => $ " { Registry } / { Image } " ; }
17
27
18
28
/// <summary>
19
29
/// Force the default OTLP receivers in the collector to use HTTP even if Aspire is set to HTTPS
You can’t perform that action at this time.
0 commit comments