Skip to content

Commit

Permalink
Revert "EDU-3149: Corrects broken Go 1.26+ SDK instructions for API k…
Browse files Browse the repository at this point in the history
…eys"

This reverts commit 5efd049.
  • Loading branch information
fairlydurable committed Sep 9, 2024
1 parent 5efd049 commit 1f46ab8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 25 deletions.
22 changes: 5 additions & 17 deletions docs/evaluate/temporal-cloud/pricing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,32 +82,20 @@ Consider an account eligible for volume discounts that uses two Namespaces.
In this example, one Namespace consumed 100 million Actions in a calendar month and one consumed 500 million Actions during the same month.
Here's how the billing works for these two Namespaces and across tiers:

- The first Namespace using 100 million Actions is billed at the $23.25 per million Actions tier, a $2,325 invoice line item.
- The first Namespace using 100 million Actions is billed entirely at the $23.25 per million Actions tier:

```
100M Actions ⨉ $23.25 per million Actions = $2,325 (Namespace total)
```

- The second Namespace with 500 million Actions is billed as follows:
- The first 300 million Actions are billed at the $23.25 Actions tier.

```
300M Actions ⨉ $23.25 per million Actions = $6,975
```

- The remaining 200 million Actions are billed at the $18.80 per million Actions tier.

```
200M Actions ⨉ $18.80 per million Actions = $3,760
```

Calculating the invoice line item for the second Namespace:
- The second Namespace with 500 million Actions is billed at the $23.25 Actions tier for the first 300 million Actions and at the $18.80 per million Actions tier for the remaining 200 million Actions:

```
300M Actions ⨉ $23.25 per million Actions = $6,975
200M Actions ⨉ $18.80 per million Actions = $3,760
$6,975 (300M Actions) + $3,760 (200M Actions) = $10,735 (Namespace total)
```

- The account would be charged a total of $13,060 for the month:
- The account is charged a total of $13,060 for the month:

```
$2,325 for the first Namespace + $10,735 for the second Namespace = $13,060 (invoice total)
Expand Down
12 changes: 4 additions & 8 deletions docs/production-deployment/cloud/api-keys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -374,15 +374,15 @@ Create an initial connection:

```go
clientOptions := client.Options{
HostPort: hostPort,
Namespace: namespaceID,
HostPort: <endpoint>,
Namespace: <namespace.accountid>,
Credentials: client.NewAPIKeyStaticCredentials(<API key>),
ConnectionOptions: client.ConnectionOptions{
TLS: &tls.Config{},
DialOptions: []grpc.DialOption{
grpc.WithUnaryInterceptor(
func(ctx context.Context, method string, req any, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
return invoker(
metadata.AppendToOutgoingContext(ctx, "temporal-namespace", namespaceID),
metadata.AppendToOutgoingContext(ctx, "temporal-namespace", <namespace.accountid>),
method,
req,
reply,
Expand All @@ -393,12 +393,8 @@ clientOptions := client.Options{
),
},
},
Credentials: client.NewAPIKeyStaticCredentials(apiKey),
}
c, err := client.Dial(clientOptions)
if err != nil {
log.Fatalf("error creating temporal client: %v", err)
}
```

Update an API key:
Expand Down

0 comments on commit 1f46ab8

Please sign in to comment.