Skip to content

STAC-24297: add worked OpenTelemetry webshop example to the generic s…#6

Open
aacevedoosorio wants to merge 3 commits into
mainfrom
stac-24297
Open

STAC-24297: add worked OpenTelemetry webshop example to the generic s…#6
aacevedoosorio wants to merge 3 commits into
mainfrom
stac-24297

Conversation

@aacevedoosorio

Copy link
Copy Markdown
Contributor

…caffold template

Comment thread templates/generic/settings/presentations/cart.sty Outdated
## Development Workflow

### 1. Modify Your StackPack
```bash

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A useful command in the dev workflow is the test-deploy sub-command (it's still feature flagged, though).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call — added test-deploy to the Development Workflow section, noting it's still behind STS_EXPERIMENTAL_STACKPACKS=true. It's been the workhorse for iterating this PR.

Comment thread templates/generic/settings/presentations/database.sty Outdated
Comment thread templates/generic/settings/presentations/microservice.sty Outdated
projection:
_type: TagProjection
provisioning:
externalComponentSelector: "external.mapping.identifier == 'urn:stackpack:<< .Name >>:otel-component-mapping:database'"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch, let me fix it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. And it was more than a rename — topologySourceSelector compiles the CEL in a different context, so the old external.mapping.identifier failed validation once renamed. The correct variable is source, so it's now source.mapping.identifier == '...' (matches the validator's HighlightProvisioningContext / the ComponentService test). Applied to cart, checkout and database.

filter:
_type: "TagFilter"
tagKey: "service.namespace"
moreTab: "<< .DisplayName >>"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed — renamed moreTab -> menuSection in both database.sty and microservice.sty (matches the spec).

…, optional highlight fields

- Rename moreTab -> menuSection and externalComponentSelector ->
  topologySourceSelector to match the settings OpenAPI spec; fix the
  provisioning CEL to use the `source` variable (source.mapping.identifier)
- Drop the highlight `fields` block from cart (optional per spec; composes
  from the base) and remove the stale "fields is required" comment
- Remove leftover topology.layer/domain references in header comments
- Document the experimental `test-deploy` subcommand in the dev workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants