-
Notifications
You must be signed in to change notification settings - Fork 887
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
Conversation
8168036
to
c548013
Compare
@@ -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 |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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
…ication into aws-sdk-fallback
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`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`GetItemCommand` would be `GetItem`. | |
`getItemCommand` would become `getItem`. |
Is that correct? Or do we want case normalization too?
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
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