Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • PlayStream /
avatar image
Question by Gruff · Mar 01 at 12:48 AM ·

Is it possible to set the playstream event name for Azure Function cloudscript calls?

I can't find any way of doing this. Every function call appears in Playstream as:

"(V2) Function Executed"

and the only way to see which function it is, is to open the raw event JSON which makes the whole stream impractical as I have different functions being triggered.

The raw event JSON has a "FullName" element with a sub key called "Name" which has the value "function_executed" so I assume this is what's being show in the Playstream, but there's no obvious way to set or control this from within the function

I'm writing Azure function app Http Triggers in python and whatever I set to my return values is set to the value of "Result" which is under the "Payload" key.

I can only set func.HttpResponse body, headers and status_code.

I wondered if maybe I had to modify the function.json bindings, but can't find anything online.

The legacy cloudscript functions report exactly which handler (and revision) is being triggered which is useful.

Help appreciated!

Thanks.

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Gosen Gao · Mar 01 at 07:14 AM

I believe you are checking the PlayStream events in the PlayStream Monitor. Currently, PlayFab doesn't support customizing how the Azure Function events display in the PlayStream Monitor, if you want this feature, please feel free to post a feature request for it. As an alternative, you can use Event API to write custom events with custom name to record the corresponding Azure Functions.

Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Gruff · Mar 01 at 12:51 PM 0
Share

Thanks Gosen, yes that's correct.

Presumably, if I were to use the Event API that would trigger an additional event that would appear in PlayStream monitor, and not replace the event that is written automatically? I did consider this, but I didn't want to clog up an alreasy noisy stream with redundant data if avoidable.

I'll have a look into it. Thanks.

avatar image Gosen Gao Gruff · Mar 02 at 07:19 AM 0
Share

Yes, it will create a new event, not replace the original one. I recommend you to use Data Explorer to view event history, which can search for specific content.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    11 People are following this question.

    avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges