Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Describe falling back to string mangling for AWS SDK RPC specifiers. #1851

Closed
wants to merge 3 commits into from

Conversation

anuraaga
Copy link
Contributor

@anuraaga anuraaga commented Aug 5, 2021

Changes

Not all AWS SDKs provide a way to access the service and operation names of an AWS API. We will work internally to ensure at least newer ones do, the models themselves that define AWS APIs include the data in the form of cloudFormationName.

In the meantime, we should allow instrumentation to generate a reasonable based on what it's got.

Related issues aspecto-io/opentelemetry-ext-js#160

@@ -16,12 +16,19 @@ groups:
examples:
- aws-api
- ref: rpc.service
brief: "The name of the service to which a request is made, as returned by the AWS SDK."
brief: >
The name of the service to which a request is made, as returned by the AWS SDK. If the SDK does not
Copy link
Member

@Oberon00 Oberon00 Aug 5, 2021

Choose a reason for hiding this comment

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

Consider moving part of this to the note.

Also I would like to have (in the note) a more fully described example that states the "input" client interface name in addition to the resulting value.

Same for rpc.method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, it seems to have fixed a bad note that was there too

note: >
If the SDK does not provide a away to retrieve a name, the name of the SDK's client interface for a
service SHOULD be used, removing the suffix `Client` if present, resulting in a PascalCase name with
no spaces. For example, `DynamoDBClient` would be `DynamoDB`.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
no spaces. For example, `DynamoDBClient` would be `DynamoDB`.
no spaces. For example, `DynamoDBClient` would become `DynamoDB`.

note: >
If the SDK does not provide a way to retrieve a name, the name of the command SHOULD be used,
removing the suffix `Command` if present, resulting in a PascalCase name with no spaces. For example,
`GetItemCommand` would be `GetItem`.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
`GetItemCommand` would be `GetItem`.
`getItemCommand` would become `getItem`.

Is that correct? Or do we want case normalization too?

@github-actions
Copy link

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Aug 18, 2021
@github-actions
Copy link

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants