Skip to content

Commit c295d10

Browse files
authored
Add EDOT CF Azure to product list and applies_to badges (#1932)
1 parent d05760c commit c295d10

File tree

10 files changed

+18
-4
lines changed

10 files changed

+18
-4
lines changed

.github/updatecli/updatecli.d/versions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ sources:
5959
username: '{{ requiredEnv "GITHUB_ACTOR" }}'
6060
versionfilter:
6161
kind: semver
62-
pattern: ">=9.0.0 <10.0.0"
62+
pattern: "^9.0.0"
6363

6464
latest-edot-dotnet-version:
6565
name: Get latest release version for the elastic-otel-dotnet
@@ -312,7 +312,7 @@ targets:
312312
kind: yaml
313313
spec:
314314
file: config/versions.yml
315-
key: versioning_systems.edot_collector.current
315+
key: $.versioning_systems.edot_collector.current
316316

317317
update-docs-docset-dotnet:
318318
name: 'Update config/versions.yml edot-dotnet {{ source "latest-edot-dotnet-version" }}'

config/versions.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,6 @@ versioning_systems:
9292
edot_cf_aws:
9393
base: 0.1
9494
current: 0.2.0
95+
edot_cf_azure:
96+
base: 0.1
97+
current: 0.6.0

docs/_snippets/applies_to-key.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* `ecctl`: Applies to [Elastic cloud control](https://www.elastic.co/docs/reference/ecctl) (ECCTL).
2424
* `edot_android`: Applies to the [Elastic Distribution of OpenTelemetry Android](https://www.elastic.co/docs/reference/opentelemetry/edot-sdks/android/) (EDOT Android).
2525
* `edot_cf_aws`: Applies to the [Elastic Distribution of OpenTelemetry Cloud Forwarder](https://www.elastic.co/docs/reference/opentelemetry/edot-cloud-forwarder/) (EDOT Cloud Forwarder).
26+
* `edot_cf_azure`: Applies to the [Elastic Distribution of OpenTelemetry Cloud Forwarder](https://www.elastic.co/docs/reference/opentelemetry/edot-cloud-forwarder/) (EDOT Cloud Forwarder).
2627
* `edot_collector`: Applies to the [Elastic Distribution of OpenTelemetry Collector](https://www.elastic.co/docs/reference/opentelemetry/edot-collector/) (EDOT Collector).
2728
* `edot_dotnet`: Applies to the [Elastic Distribution of OpenTelemetry .NET](https://www.elastic.co/docs/reference/opentelemetry/edot-sdks/dotnet/) (EDOT .NET).
2829
* `edot_ios`: Applies to the [Elastic Distribution of OpenTelemetry iOS](https://www.elastic.co/docs/reference/opentelemetry/edot-sdks/ios/) (EDOT iOS).

docs/syntax/applies.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ applies_to:
223223
edot_php:
224224
edot_python:
225225
edot_cf_aws:
226+
edot_cf_azure:
226227
---
227228
```
228229
:::::

docs/syntax/version-variables.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ This is dictated by the [`versions.yml`](https://github.com/elastic/docs-builder
104104
* `edot_php`
105105
* `edot_python`
106106
* `edot_cf_aws`
107+
* `edot_cf_azure`
107108
* `edot_collector`
108109

109110
The following are available but should not be used. These map to serverless projects and have a fixed high version number.

src/Elastic.Documentation.Configuration/Versions/VersionConfiguration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public enum VersioningSystemId
8585
EdotPython,
8686
[Display(Name = "edot_cf_aws")]
8787
EdotCfAws,
88+
[Display(Name = "edot_cf_azure")]
89+
EdotCfAzure,
8890
[Display(Name = "edot_collector")]
8991
EdotCollector
9092
}

src/Elastic.Documentation/AppliesTo/ApplicableTo.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ public record ProductApplicability
178178
[YamlMember(Alias = "edot_cf_aws")]
179179
public AppliesCollection? EdotCfAws { get; set; }
180180

181+
[YamlMember(Alias = "edot_cf_azure")]
182+
public AppliesCollection? EdotCfAzure { get; set; }
183+
181184
[YamlMember(Alias = "edot_collector")]
182185
public AppliesCollection? EdotCollector { get; set; }
183186
}

src/Elastic.Documentation/AppliesTo/ApplicableToYamlConverter.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class ApplicableToYamlConverter : IYamlTypeConverter
1919
"elasticsearch", "observability", "security",
2020
"ecctl", "curator",
2121
"apm_agent_android","apm_agent_dotnet", "apm_agent_go", "apm_agent_ios", "apm_agent_java", "apm_agent_node", "apm_agent_php", "apm_agent_python", "apm_agent_ruby", "apm_agent_rum",
22-
"edot_ios", "edot_android", "edot_dotnet", "edot_java", "edot_node", "edot_php", "edot_python", "edot_cf_aws"
22+
"edot_ios", "edot_android", "edot_dotnet", "edot_java", "edot_node", "edot_php", "edot_python", "edot_cf_aws", "edot_cf_azure"
2323
];
2424

2525
public bool Accepts(Type type) => type == typeof(ApplicableTo);
@@ -228,7 +228,8 @@ private static bool TryGetProductApplicability(Dictionary<object, object?> dicti
228228
{ "edot_node", a => productAvailability.EdotNode = a },
229229
{ "edot_php", a => productAvailability.EdotPhp = a },
230230
{ "edot_python", a => productAvailability.EdotPython = a },
231-
{ "edot_cf_aws", a => productAvailability.EdotCfAws = a }
231+
{ "edot_cf_aws", a => productAvailability.EdotCfAws = a },
232+
{ "edot_cf_azure", a => productAvailability.EdotCfAzure = a }
232233
};
233234

234235
foreach (var (key, action) in mapping)

src/Elastic.Markdown/Myst/Components/ApplicabilityMappings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public record ApplicabilityDefinition(string Key, string DisplayName, Versioning
3232
// EDOT Products
3333
public static readonly ApplicabilityDefinition EdotAndroid = new("EDOT Android", "Elastic&nbsp;Distribution of OpenTelemetry&nbsp;Android", VersioningSystemId.EdotAndroid);
3434
public static readonly ApplicabilityDefinition EdotCfAws = new("EDOT CF AWS", "Elastic&nbsp;Distribution of OpenTelemetry&nbsp;Cloud&nbsp;Forwarder for AWS", VersioningSystemId.EdotCfAws);
35+
public static readonly ApplicabilityDefinition EdotCfAzure = new("EDOT CF Azure", "Elastic&nbsp;Distribution of OpenTelemetry&nbsp;Cloud&nbsp;Forwarder for Azure", VersioningSystemId.EdotCfAzure);
3536
public static readonly ApplicabilityDefinition EdotCollector = new("EDOT Collector", "Elastic Distribution of OpenTelemetry Collector", VersioningSystemId.EdotCollector);
3637
public static readonly ApplicabilityDefinition EdotDotnet = new("EDOT .NET", "Elastic&nbsp;Distribution of OpenTelemetry&nbsp;.NET", VersioningSystemId.EdotDotnet);
3738
public static readonly ApplicabilityDefinition EdotIos = new("EDOT iOS", "Elastic&nbsp;Distribution of OpenTelemetry&nbsp;iOS", VersioningSystemId.EdotIos);

src/Elastic.Markdown/Myst/Components/ApplicableToViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class ApplicableToViewModel
3737
[p => p.Curator] = ApplicabilityMappings.Curator,
3838
[p => p.EdotAndroid] = ApplicabilityMappings.EdotAndroid,
3939
[p => p.EdotCfAws] = ApplicabilityMappings.EdotCfAws,
40+
[p => p.EdotCfAzure] = ApplicabilityMappings.EdotCfAzure,
4041
[p => p.EdotCollector] = ApplicabilityMappings.EdotCollector,
4142
[p => p.EdotDotnet] = ApplicabilityMappings.EdotDotnet,
4243
[p => p.EdotIos] = ApplicabilityMappings.EdotIos,

0 commit comments

Comments
 (0)